<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error when running data.batch_show in argis.learn in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-data-batch-show-in-argis-learn/m-p/1092048#M44791</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I did export data training for deep learning and had a resulted folder(C:\Data\Deep_Learning\test_25Aug\esri_training_2).&lt;/P&gt;&lt;P&gt;My training bounding boxes have different size as figured&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="community.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21625iD8097B10263DBFDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="community.PNG" alt="community.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I run the script:&lt;/P&gt;&lt;P&gt;data=prepare_data(training_deep, chip_size=448, batch_size=2, transforms=False)&lt;BR /&gt;data.show_batch()&lt;/P&gt;&lt;P&gt;It has an error as below. Could you please help me to fix it? Thank you.&amp;nbsp;&lt;/P&gt;&lt;DIV class="lm-Widget p-Widget lm-Panel p-Panel jp-OutputArea-child"&gt;&lt;DIV class="lm-Widget p-Widget jp-RenderedText jp-mod-trusted jp-OutputArea-output"&gt;&lt;PRE&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;~\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\matplotlib\cbook\__init__.py&lt;/SPAN&gt; in &lt;SPAN class="ansi-cyan-fg"&gt;_check_shape&lt;/SPAN&gt;&lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;(_shape, **kwargs)&lt;/SPAN&gt;
&lt;SPAN class="ansi-green-fg"&gt;   2291&lt;/SPAN&gt; 
&lt;SPAN class="ansi-green-fg"&gt;   2292&lt;/SPAN&gt;             raise ValueError(
&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;-&amp;gt; 2293&lt;/SPAN&gt;                 &lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;f"{k!r} must be {len(target_shape)}D "&lt;/SPAN&gt;
&lt;SPAN class="ansi-green-fg"&gt;   2294&lt;/SPAN&gt;                 &lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;f"with shape ({text_shape}). "&lt;/SPAN&gt;
&lt;SPAN class="ansi-green-fg"&gt;   2295&lt;/SPAN&gt;                 &lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;f"Your input has shape {v.shape}."&lt;/SPAN&gt;

&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;ValueError&lt;/SPAN&gt;: 'vertices' must be 2D with shape (M, 2). Your input has shape (0,).&lt;BR /&gt;&amp;lt;Figure size 288x288 with 1 Axes&amp;gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 24 Aug 2021 23:23:56 GMT</pubDate>
    <dc:creator>lienpham83</dc:creator>
    <dc:date>2021-08-24T23:23:56Z</dc:date>
    <item>
      <title>Error when running data.batch_show in argis.learn</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-data-batch-show-in-argis-learn/m-p/1092048#M44791</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I did export data training for deep learning and had a resulted folder(C:\Data\Deep_Learning\test_25Aug\esri_training_2).&lt;/P&gt;&lt;P&gt;My training bounding boxes have different size as figured&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="community.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21625iD8097B10263DBFDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="community.PNG" alt="community.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I run the script:&lt;/P&gt;&lt;P&gt;data=prepare_data(training_deep, chip_size=448, batch_size=2, transforms=False)&lt;BR /&gt;data.show_batch()&lt;/P&gt;&lt;P&gt;It has an error as below. Could you please help me to fix it? Thank you.&amp;nbsp;&lt;/P&gt;&lt;DIV class="lm-Widget p-Widget lm-Panel p-Panel jp-OutputArea-child"&gt;&lt;DIV class="lm-Widget p-Widget jp-RenderedText jp-mod-trusted jp-OutputArea-output"&gt;&lt;PRE&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;~\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\matplotlib\cbook\__init__.py&lt;/SPAN&gt; in &lt;SPAN class="ansi-cyan-fg"&gt;_check_shape&lt;/SPAN&gt;&lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;(_shape, **kwargs)&lt;/SPAN&gt;
&lt;SPAN class="ansi-green-fg"&gt;   2291&lt;/SPAN&gt; 
&lt;SPAN class="ansi-green-fg"&gt;   2292&lt;/SPAN&gt;             raise ValueError(
&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;-&amp;gt; 2293&lt;/SPAN&gt;                 &lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;f"{k!r} must be {len(target_shape)}D "&lt;/SPAN&gt;
&lt;SPAN class="ansi-green-fg"&gt;   2294&lt;/SPAN&gt;                 &lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;f"with shape ({text_shape}). "&lt;/SPAN&gt;
&lt;SPAN class="ansi-green-fg"&gt;   2295&lt;/SPAN&gt;                 &lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;f"Your input has shape {v.shape}."&lt;/SPAN&gt;

&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;ValueError&lt;/SPAN&gt;: 'vertices' must be 2D with shape (M, 2). Your input has shape (0,).&lt;BR /&gt;&amp;lt;Figure size 288x288 with 1 Axes&amp;gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Aug 2021 23:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-data-batch-show-in-argis-learn/m-p/1092048#M44791</guid>
      <dc:creator>lienpham83</dc:creator>
      <dc:date>2021-08-24T23:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running data.batch_show in argis.learn</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-data-batch-show-in-argis-learn/m-p/1092566#M44838</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you paste the full error ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 04:06:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-data-batch-show-in-argis-learn/m-p/1092566#M44838</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-26T04:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running data.batch_show in argis.learn</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-data-batch-show-in-argis-learn/m-p/1092929#M44881</link>
      <description>&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;I have fixed the error. I found out that my training polygon has the fields class, classValue, Confidence. When I deleted the field class and confidence, everything is normal.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Lien&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 21:16:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-data-batch-show-in-argis-learn/m-p/1092929#M44881</guid>
      <dc:creator>lienpham83</dc:creator>
      <dc:date>2021-08-26T21:16:55Z</dc:date>
    </item>
  </channel>
</rss>

