single image file or a directory containing image files.</span>
<span class="sd">            result_path (str): Path to save the prediction results.</span>

<span class="sd">        Returns:</span>
<span class="sd">            list: List of prediction results.</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="n">images</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">load_images</span><span class="p">(</span><span class="n">inpu