port</span> <span class="n">load_config</span><span class="p">,</span> <span class="n">initialize_tasks_and_models</span>
<span class="kn">import</span> <span class="nn">pdf_extract_kit.tasks</span>  <span class="c1"># 确保所有任务模块被导入</span>

<span class="n">TASK_NAME</span> <span class="o">=</span> <span class="s1">&#39;layout_detection&#39;</span>


<span class="k">def</span> <span class="nf">parse_args</span><span class="p">():</span>
    <span class="n">parser</span> <span class="o">=<