Π­Ρ‚ΠΎΡ‚ ΠΊΠΎΠΌΠΌΠΈΡ‚ содСрТится Π²:
iulusoy 2024-02-19 12:29:49 +00:00
Ρ€ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ 883e4628cd
ΠšΠΎΠΌΠΌΠΈΡ‚ 9deb2e40df
33 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 431 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 46510 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/doctrees/environment.pickle

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Различия Ρ„Π°ΠΉΠ»ΠΎΠ² скрыты, ΠΏΠΎΡ‚ΠΎΠΌΡƒ Ρ‡Ρ‚ΠΎ ΠΎΠ΄Π½Π° ΠΈΠ»ΠΈ нСсколько строк слишком Π΄Π»ΠΈΠ½Π½Ρ‹

Различия Ρ„Π°ΠΉΠ»ΠΎΠ² скрыты, ΠΏΠΎΡ‚ΠΎΠΌΡƒ Ρ‡Ρ‚ΠΎ ΠΎΠ΄Π½Π° ΠΈΠ»ΠΈ нСсколько строк слишком Π΄Π»ΠΈΠ½Π½Ρ‹

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/doctrees/nbsphinx/notebooks_DemoNotebook_ammico_88_1.jpg

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 13 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/doctrees/nbsphinx/notebooks_DemoNotebook_ammico_88_1.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 80 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/doctrees/nbsphinx/notebooks_Example_cropposts_5_0.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 27 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/doctrees/nbsphinx/notebooks_Example_cropposts_5_1.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 251 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/doctrees/nbsphinx/notebooks_Example_cropposts_7_0.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 83 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/doctrees/nbsphinx/notebooks_Example_cropposts_7_1.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 129 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/doctrees/nbsphinx/notebooks_Example_cropposts_7_2.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 92 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/doctrees/nbsphinx/notebooks_Example_cropposts_7_3.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 127 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/doctrees/notebooks/DemoNotebook_ammico.doctree

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/doctrees/notebooks/Example cropposts.doctree

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/html/_images/notebooks_DemoNotebook_ammico_88_1.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 80 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/html/_images/notebooks_Example_cropposts_5_0.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 27 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/html/_images/notebooks_Example_cropposts_5_1.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 251 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/html/_images/notebooks_Example_cropposts_7_0.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 83 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/html/_images/notebooks_Example_cropposts_7_1.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 129 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/html/_images/notebooks_Example_cropposts_7_2.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 92 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
build/html/_images/notebooks_Example_cropposts_7_3.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 127 KiB

Π Π°Π·Π½ΠΈΡ†Π° ΠΌΠ΅ΠΆΠ΄Ρƒ Ρ„Π°ΠΉΠ»Π°ΠΌΠΈ Π½Π΅ ΠΏΠΎΠΊΠ°Π·Π°Π½Π° ΠΈΠ·-Π·Π° своСго большого Ρ€Π°Π·ΠΌΠ΅Ρ€Π° Π—Π°Π³Ρ€ΡƒΠ·ΠΈΡ‚ΡŒ Ρ€Π°Π·Π½ΠΈΡ†Ρƒ

Различия Ρ„Π°ΠΉΠ»ΠΎΠ² скрыты, ΠΏΠΎΡ‚ΠΎΠΌΡƒ Ρ‡Ρ‚ΠΎ ΠΎΠ΄Π½Π° ΠΈΠ»ΠΈ нСсколько строк слишком Π΄Π»ΠΈΠ½Π½Ρ‹

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -90,7 +90,7 @@
<h1>Crop posts module<a class="headerlink" href="#Crop-posts-module" title="Link to this heading"></a></h1> <h1>Crop posts module<a class="headerlink" href="#Crop-posts-module" title="Link to this heading"></a></h1>
<p>Crop posts from social media posts images, to keep import text informations from social media posts images. We can set some manually cropped views from social media posts as reference for cropping the same type social media posts images.</p> <p>Crop posts from social media posts images, to keep import text informations from social media posts images. We can set some manually cropped views from social media posts as reference for cropping the same type social media posts images.</p>
<div class="nbinput nblast docutils container"> <div class="nbinput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[1]: <div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[ ]:
</pre></div> </pre></div>
</div> </div>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># Please ignore this cell: extra install steps that are only executed when running the notebook on Google Colab</span> <div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># Please ignore this cell: extra install steps that are only executed when running the notebook on Google Colab</span>
@ -117,7 +117,7 @@
</div> </div>
</div> </div>
<div class="nbinput nblast docutils container"> <div class="nbinput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[2]: <div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[ ]:
</pre></div> </pre></div>
</div> </div>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">ammico.cropposts</span> <span class="k">as</span> <span class="nn">crpo</span> <div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">ammico.cropposts</span> <span class="k">as</span> <span class="nn">crpo</span>
@ -130,8 +130,8 @@
</div> </div>
</div> </div>
<p>The cropping is carried out by finding reference images on the image to be cropped. If a reference matches a region on the image, then everything below the matched region is removed. Manually look at a reference and an example post with the code below.</p> <p>The cropping is carried out by finding reference images on the image to be cropped. If a reference matches a region on the image, then everything below the matched region is removed. Manually look at a reference and an example post with the code below.</p>
<div class="nbinput docutils container"> <div class="nbinput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[3]: <div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[ ]:
</pre></div> </pre></div>
</div> </div>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># load ref view for cropping the same type social media posts images.</span> <div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># load ref view for cropping the same type social media posts images.</span>
@ -152,23 +152,9 @@
</pre></div> </pre></div>
</div> </div>
</div> </div>
<div class="nboutput docutils container">
<div class="prompt empty docutils container">
</div>
<div class="output_area docutils container">
<img alt="../_images/notebooks_Example_cropposts_5_0.png" src="../_images/notebooks_Example_cropposts_5_0.png" />
</div>
</div>
<div class="nboutput nblast docutils container">
<div class="prompt empty docutils container">
</div>
<div class="output_area docutils container">
<img alt="../_images/notebooks_Example_cropposts_5_1.png" src="../_images/notebooks_Example_cropposts_5_1.png" />
</div>
</div>
<p>You can now crop the image and check on the way that everything looks fine. <code class="docutils literal notranslate"><span class="pre">plt_match</span></code> will plot the matches on the image and below which line content will be cropped; <code class="docutils literal notranslate"><span class="pre">plt_crop</span></code> will plot the cropped text part of the social media post with the comments removed; <code class="docutils literal notranslate"><span class="pre">plt_image</span></code> will plot the image part of the social media post if applicable.</p> <p>You can now crop the image and check on the way that everything looks fine. <code class="docutils literal notranslate"><span class="pre">plt_match</span></code> will plot the matches on the image and below which line content will be cropped; <code class="docutils literal notranslate"><span class="pre">plt_crop</span></code> will plot the cropped text part of the social media post with the comments removed; <code class="docutils literal notranslate"><span class="pre">plt_image</span></code> will plot the image part of the social media post if applicable.</p>
<div class="nbinput docutils container"> <div class="nbinput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[4]: <div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[ ]:
</pre></div> </pre></div>
</div> </div>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># crop a posts from reference view, check the cropping</span> <div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># crop a posts from reference view, check the cropping</span>
@ -180,38 +166,10 @@
</pre></div> </pre></div>
</div> </div>
</div> </div>
<div class="nboutput docutils container">
<div class="prompt empty docutils container">
</div>
<div class="output_area docutils container">
<img alt="../_images/notebooks_Example_cropposts_7_0.png" src="../_images/notebooks_Example_cropposts_7_0.png" />
</div>
</div>
<div class="nboutput docutils container">
<div class="prompt empty docutils container">
</div>
<div class="output_area docutils container">
<img alt="../_images/notebooks_Example_cropposts_7_1.png" src="../_images/notebooks_Example_cropposts_7_1.png" />
</div>
</div>
<div class="nboutput docutils container">
<div class="prompt empty docutils container">
</div>
<div class="output_area docutils container">
<img alt="../_images/notebooks_Example_cropposts_7_2.png" src="../_images/notebooks_Example_cropposts_7_2.png" />
</div>
</div>
<div class="nboutput nblast docutils container">
<div class="prompt empty docutils container">
</div>
<div class="output_area docutils container">
<img alt="../_images/notebooks_Example_cropposts_7_3.png" src="../_images/notebooks_Example_cropposts_7_3.png" />
</div>
</div>
<p>Batch crop images from the image folder given in <code class="docutils literal notranslate"><span class="pre">crop_dir</span></code>. The cropped images will save in <code class="docutils literal notranslate"><span class="pre">save_crop_dir</span></code> folder with the same file name as the original file. The reference images with the items to match are provided in <code class="docutils literal notranslate"><span class="pre">ref_dir</span></code>.</p> <p>Batch crop images from the image folder given in <code class="docutils literal notranslate"><span class="pre">crop_dir</span></code>. The cropped images will save in <code class="docutils literal notranslate"><span class="pre">save_crop_dir</span></code> folder with the same file name as the original file. The reference images with the items to match are provided in <code class="docutils literal notranslate"><span class="pre">ref_dir</span></code>.</p>
<p>Sometimes the cropping will be imperfect, due to improper matches on the image. It is sometimes easier to first categorize the social media posts and then set different references in the reference folder <code class="docutils literal notranslate"><span class="pre">ref_dir</span></code>.</p> <p>Sometimes the cropping will be imperfect, due to improper matches on the image. It is sometimes easier to first categorize the social media posts and then set different references in the reference folder <code class="docutils literal notranslate"><span class="pre">ref_dir</span></code>.</p>
<div class="nbinput docutils container"> <div class="nbinput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[5]: <div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[ ]:
</pre></div> </pre></div>
</div> </div>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><br/><span></span><span class="n">crop_dir</span> <span class="o">=</span> <span class="s2">&quot;data/&quot;</span> <div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><br/><span></span><span class="n">crop_dir</span> <span class="o">=</span> <span class="s2">&quot;data/&quot;</span>
@ -226,30 +184,6 @@
</pre></div> </pre></div>
</div> </div>
</div> </div>
<div class="nboutput nblast docutils container">
<div class="prompt empty docutils container">
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">FileNotFoundError</span> Traceback (most recent call last)
Cell <span class="ansi-green-fg">In[5], line 5</span>
<span class="ansi-green-intense-fg ansi-bold"> 2</span> ref_dir <span style="color: rgb(98,98,98)">=</span> pkg <span style="color: rgb(98,98,98)">/</span> <span style="color: rgb(175,0,0)">&#34;</span><span style="color: rgb(175,0,0)">data</span><span style="color: rgb(175,0,0)">&#34;</span> <span style="color: rgb(98,98,98)">/</span> <span style="color: rgb(175,0,0)">&#34;</span><span style="color: rgb(175,0,0)">ref</span><span style="color: rgb(175,0,0)">&#34;</span>
<span class="ansi-green-intense-fg ansi-bold"> 3</span> save_crop_dir <span style="color: rgb(98,98,98)">=</span> <span style="color: rgb(175,0,0)">&#34;</span><span style="color: rgb(175,0,0)">data/crop/</span><span style="color: rgb(175,0,0)">&#34;</span>
<span class="ansi-green-fg">----&gt; 5</span> files <span style="color: rgb(98,98,98)">=</span> <span class="ansi-yellow-bg">utils</span><span class="ansi-yellow-bg" style="color: rgb(98,98,98)">.</span><span class="ansi-yellow-bg">find_files</span><span class="ansi-yellow-bg">(</span><span class="ansi-yellow-bg">path</span><span class="ansi-yellow-bg" style="color: rgb(98,98,98)">=</span><span class="ansi-yellow-bg">crop_dir</span><span class="ansi-yellow-bg">,</span><span class="ansi-yellow-bg">limit</span><span class="ansi-yellow-bg" style="color: rgb(98,98,98)">=</span><span class="ansi-yellow-bg" style="color: rgb(98,98,98)">10</span><span class="ansi-yellow-bg">,</span><span class="ansi-yellow-bg">)</span>
<span class="ansi-green-intense-fg ansi-bold"> 6</span> ref_files <span style="color: rgb(98,98,98)">=</span> utils<span style="color: rgb(98,98,98)">.</span>find_files(path<span style="color: rgb(98,98,98)">=</span>ref_dir<span style="color: rgb(98,98,98)">.</span>as_posix(), limit<span style="color: rgb(98,98,98)">=</span><span style="color: rgb(98,98,98)">100</span>)
<span class="ansi-green-intense-fg ansi-bold"> 8</span> crpo<span style="color: rgb(98,98,98)">.</span>crop_media_posts(files, ref_files, save_crop_dir, plt_match<span style="color: rgb(98,98,98)">=</span><span class="ansi-bold" style="color: rgb(0,135,0)">True</span>, plt_crop<span style="color: rgb(98,98,98)">=</span><span class="ansi-bold" style="color: rgb(0,135,0)">False</span>, plt_image<span style="color: rgb(98,98,98)">=</span><span class="ansi-bold" style="color: rgb(0,135,0)">False</span>)
File <span class="ansi-green-fg">~/work/AMMICO/AMMICO/ammico/utils.py:134</span>, in <span class="ansi-cyan-fg">find_files</span><span class="ansi-blue-fg">(path, pattern, recursive, limit, random_seed)</span>
<span class="ansi-green-intense-fg ansi-bold"> 131</span> results<span style="color: rgb(98,98,98)">.</span>extend(_match_pattern(path, p, recursive<span style="color: rgb(98,98,98)">=</span>recursive))
<span class="ansi-green-intense-fg ansi-bold"> 133</span> <span class="ansi-bold" style="color: rgb(0,135,0)">if</span> <span style="color: rgb(0,135,0)">len</span>(results) <span style="color: rgb(98,98,98)">==</span> <span style="color: rgb(98,98,98)">0</span>:
<span class="ansi-green-fg">--&gt; 134</span> <span class="ansi-bold" style="color: rgb(0,135,0)">raise</span> <span class="ansi-bold" style="color: rgb(215,95,95)">FileNotFoundError</span>(<span style="color: rgb(175,0,0)">f</span><span style="color: rgb(175,0,0)">&#34;</span><span style="color: rgb(175,0,0)">No files found in </span><span class="ansi-bold" style="color: rgb(175,95,135)">{</span>path<span class="ansi-bold" style="color: rgb(175,95,135)">}</span><span style="color: rgb(175,0,0)"> with pattern </span><span style="color: rgb(175,0,0)">&#39;</span><span class="ansi-bold" style="color: rgb(175,95,135)">{</span>pattern<span class="ansi-bold" style="color: rgb(175,95,135)">}</span><span style="color: rgb(175,0,0)">&#39;</span><span style="color: rgb(175,0,0)">&#34;</span>)
<span class="ansi-green-intense-fg ansi-bold"> 136</span> <span class="ansi-bold" style="color: rgb(0,135,0)">if</span> random_seed <span class="ansi-bold" style="color: rgb(175,0,255)">is</span> <span class="ansi-bold" style="color: rgb(175,0,255)">not</span> <span class="ansi-bold" style="color: rgb(0,135,0)">None</span>:
<span class="ansi-green-intense-fg ansi-bold"> 137</span> random<span style="color: rgb(98,98,98)">.</span>seed(random_seed)
<span class="ansi-red-fg">FileNotFoundError</span>: No files found in data/ with pattern &#39;[&#39;png&#39;, &#39;jpg&#39;, &#39;jpeg&#39;, &#39;gif&#39;, &#39;webp&#39;, &#39;avif&#39;, &#39;tiff&#39;]&#39;
</pre></div></div>
</div>
<div class="nbinput nblast docutils container"> <div class="nbinput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[ ]: <div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[ ]:
</pre></div> </pre></div>

Различия Ρ„Π°ΠΉΠ»ΠΎΠ² скрыты, ΠΏΠΎΡ‚ΠΎΠΌΡƒ Ρ‡Ρ‚ΠΎ ΠΎΠ΄Π½Π° ΠΈΠ»ΠΈ нСсколько строк слишком Π΄Π»ΠΈΠ½Π½Ρ‹

Различия Ρ„Π°ΠΉΠ»ΠΎΠ² скрыты, ΠΏΠΎΡ‚ΠΎΠΌΡƒ Ρ‡Ρ‚ΠΎ ΠΎΠ΄Π½Π° ΠΈΠ»ΠΈ нСсколько строк слишком Π΄Π»ΠΈΠ½Π½Ρ‹

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -22,6 +22,7 @@ release = "0.0.1"
extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "myst_parser", "nbsphinx"] extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "myst_parser", "nbsphinx"]
nbsphinx_allow_errors = True nbsphinx_allow_errors = True
nbsphinx_execute = "never"
napoleon_custom_sections = [("Returns", "params_style")] napoleon_custom_sections = [("Returns", "params_style")]
myst_heading_anchors = 3 myst_heading_anchors = 3

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
source/notebooks/data-test/img0.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 244 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
source/notebooks/data-test/img1.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 150 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
source/notebooks/data-test/img2.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 346 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
source/notebooks/data-test/img3.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 1.9 MiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
source/notebooks/data-test/img4.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 1.3 MiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
source/notebooks/data-test/img5.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 603 KiB

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -1,7 +0,0 @@
,filename,face,multiple_faces,no_faces,wears_mask,age,gender,race,emotion,emotion (category),text,text_language,text_english,text_clean,text_summary,sentiment,sentiment_score,entity,entity_type,const_image_summary,3_non-deterministic_summary
0,data-test/img4.png,No,No,0,['No'],[None],[None],[None],[None],[None],MOODOVIN XI,en,MOODOVIN XI,XI," MOODOVIN XI XI: Vladimir Putin, Vladimir Vladmir Zelizer, Vladimir",POSITIVE,0.66,['MOODOVIN XI'],['ORG'],a river running through a city next to tall buildings,"['there is a pretty house that sits above the water', 'there is a building with a balcony and lots of plants on the side of it', 'several buildings with a river flowing through it']"
1,data-test/img1.png,No,No,0,['No'],[None],[None],[None],[None],[None],SCATTERING THEORY The Quantum Theory of Nonrelativistic Collisions JOHN R. TAYLOR University of Colorado,en,SCATTERING THEORY The Quantum Theory of Nonrelativistic Collisions JOHN R. TAYLOR University of Colorado,THEORY The Quantum Theory of Collisions JOHN R. TAYLOR University of Colorado, SCATTERING THEORY The Quantum Theory of Nonrelativistic Collisions,POSITIVE,0.91,"['Non', '##vist', 'Col', '##N', 'R', 'T', '##AYL', 'University of Colorado']","['MISC', 'MISC', 'MISC', 'ORG', 'PER', 'PER', 'ORG', 'ORG']",a close up of a piece of paper with writing on it,"['a book opened to the book title for a novel', 'there are many text on this page', 'the text in a book is a handwritten poem']"
2,data-test/img2.png,No,No,0,['No'],[None],[None],[None],[None],[None],THE ALGEBRAIC EIGENVALUE PROBLEM DOM NVS TIO MINA Monographs on Numerical Analysis J.. H. WILKINSON,en,THE ALGEBRAIC EIGENVALUE PROBLEM DOM NVS TIO MINA Monographs on Numerical Analysis J.. H. WILKINSON,THE PROBLEM DOM NVS TIO MINA Monographs on Numerical Analysis J .. H. WILKINSON, H. H. W. WILKINSON: The Algebri,NEGATIVE,0.97,"['ALGEBRAIC EIGENVAL', 'NVS TIO MI', 'J', 'H', 'WILKINSON']","['MISC', 'ORG', 'ORG', 'ORG', 'ORG']",a yellow book with green lettering on it,"['a book cover with green writing on a black background', 'the title page of a book with information from its authors', 'a book about the age - related engineering and engineering']"
3,data-test/img3.png,No,No,0,['No'],[None],[None],[None],[None],[None],m OOOO 0000 www.,en,m OOOO 0000 www.,m www ., www. m OOOO 0000 0000 www.m.m OOOo 0000,NEGATIVE,0.62,[],[],a bus that is sitting on the side of a road,"['there are cars and a bus on the side of the road', 'a bus that is sitting in the middle of a street', 'an aerial view of an empty city street with two large buses passing by']"
4,data-test/img0.png,No,No,0,['No'],[None],[None],[None],[None],[None],"Mathematische Formelsammlung fΓΌr Ingenieure und Naturwissenschaftler Mit zahlreichen Abbildungen und Rechenbeispielen und einer ausfΓΌhrlichen Integraltafel 3., verbesserte Auflage",de,"Mathematical formula collection for engineers and scientists With numerous illustrations and calculation examples and a detailed integral table 3rd, improved edition","Mathematical formula collection for engineers and scientists With numerous illustrations and calculation examples and a detailed integral table 3rd , improved edition", Mathematical formula collection for engineers and scientists . Includes numerous illustrations and calculation examples . Includes,POSITIVE,1.0,[],[],a close up of an open book with writing on it,"['a close up of a book with many languages', 'a book that is opened up in german', 'book about mathemarche formulals and their meaning']"
5,data-test/img5.png,Yes,No,1,['No'],[26],['Man'],[None],['sad'],['Negative'],,en,,, CNN.com will feature iReporter photos in a weekly Travel Snapshots gallery .,POSITIVE,0.75,[],[],a person running on a beach near a rock formation,"['a woman is running down the beach next to some rocks', 'a woman running along the beach by the ocean', 'there is a person running on the beach next to the ocean']"
1 filename face multiple_faces no_faces wears_mask age gender race emotion emotion (category) text text_language text_english text_clean text_summary sentiment sentiment_score entity entity_type const_image_summary 3_non-deterministic_summary
2 0 data-test/img4.png No No 0 ['No'] [None] [None] [None] [None] [None] MOODOVIN XI en MOODOVIN XI XI MOODOVIN XI XI: Vladimir Putin, Vladimir Vladmir Zelizer, Vladimir POSITIVE 0.66 ['MOODOVIN XI'] ['ORG'] a river running through a city next to tall buildings ['there is a pretty house that sits above the water', 'there is a building with a balcony and lots of plants on the side of it', 'several buildings with a river flowing through it']
3 1 data-test/img1.png No No 0 ['No'] [None] [None] [None] [None] [None] SCATTERING THEORY The Quantum Theory of Nonrelativistic Collisions JOHN R. TAYLOR University of Colorado en SCATTERING THEORY The Quantum Theory of Nonrelativistic Collisions JOHN R. TAYLOR University of Colorado THEORY The Quantum Theory of Collisions JOHN R. TAYLOR University of Colorado SCATTERING THEORY The Quantum Theory of Nonrelativistic Collisions POSITIVE 0.91 ['Non', '##vist', 'Col', '##N', 'R', 'T', '##AYL', 'University of Colorado'] ['MISC', 'MISC', 'MISC', 'ORG', 'PER', 'PER', 'ORG', 'ORG'] a close up of a piece of paper with writing on it ['a book opened to the book title for a novel', 'there are many text on this page', 'the text in a book is a handwritten poem']
4 2 data-test/img2.png No No 0 ['No'] [None] [None] [None] [None] [None] THE ALGEBRAIC EIGENVALUE PROBLEM DOM NVS TIO MINA Monographs on Numerical Analysis J.. H. WILKINSON en THE ALGEBRAIC EIGENVALUE PROBLEM DOM NVS TIO MINA Monographs on Numerical Analysis J.. H. WILKINSON THE PROBLEM DOM NVS TIO MINA Monographs on Numerical Analysis J .. H. WILKINSON H. H. W. WILKINSON: The Algebri NEGATIVE 0.97 ['ALGEBRAIC EIGENVAL', 'NVS TIO MI', 'J', 'H', 'WILKINSON'] ['MISC', 'ORG', 'ORG', 'ORG', 'ORG'] a yellow book with green lettering on it ['a book cover with green writing on a black background', 'the title page of a book with information from its authors', 'a book about the age - related engineering and engineering']
5 3 data-test/img3.png No No 0 ['No'] [None] [None] [None] [None] [None] m OOOO 0000 www. en m OOOO 0000 www. m www . www. m OOOO 0000 0000 www.m.m OOOo 0000 NEGATIVE 0.62 [] [] a bus that is sitting on the side of a road ['there are cars and a bus on the side of the road', 'a bus that is sitting in the middle of a street', 'an aerial view of an empty city street with two large buses passing by']
6 4 data-test/img0.png No No 0 ['No'] [None] [None] [None] [None] [None] Mathematische Formelsammlung fΓΌr Ingenieure und Naturwissenschaftler Mit zahlreichen Abbildungen und Rechenbeispielen und einer ausfΓΌhrlichen Integraltafel 3., verbesserte Auflage de Mathematical formula collection for engineers and scientists With numerous illustrations and calculation examples and a detailed integral table 3rd, improved edition Mathematical formula collection for engineers and scientists With numerous illustrations and calculation examples and a detailed integral table 3rd , improved edition Mathematical formula collection for engineers and scientists . Includes numerous illustrations and calculation examples . Includes POSITIVE 1.0 [] [] a close up of an open book with writing on it ['a close up of a book with many languages', 'a book that is opened up in german', 'book about mathemarche formulals and their meaning']
7 5 data-test/img5.png Yes No 1 ['No'] [26] ['Man'] [None] ['sad'] ['Negative'] en CNN.com will feature iReporter photos in a weekly Travel Snapshots gallery . POSITIVE 0.75 [] [] a person running on a beach near a rock formation ['a woman is running down the beach next to some rocks', 'a woman running along the beach by the ocean', 'there is a person running on the beach next to the ocean']