<?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 Re: Deep learning - invalid argument 0: Sizes of tensors must match except in dimension 0 in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838048#M3411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://community.esri.com/migrated-users/39024"&gt;Sandeep Kumar&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am learning a model for pools. When I set bigger chip size, I am not able to get to detail like the attached one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chip1" class="jive-emoji jive-image image-3 j-img-original" src="https://community.esri.com/legacyfs/online/475047_chip1.PNG" /&gt;&lt;/P&gt;&lt;P&gt;- the size is 200 to 200 pixels and cell size 0.045 (because the map is in WebMercator, I believe it´s in meters - am I right? ) - and the real size of the area is around 10x meters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the chip to 256x256 and pixel size to 0.2, I don´t think the resul is usable - see&amp;nbsp;&lt;IMG alt="chip2" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/475044_000000007.png" /&gt;&lt;/P&gt;&lt;P&gt;So I don´t know, if there is any other way, how to set the export of training chips more proper way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error I mentioned in the initial post - have you seen this? It seems for me some issue with the chips themselves. -&amp;nbsp;&lt;A class="link-titled" href="https://discuss.pytorch.org/t/runtimeerror-invalid-argument-0-sizes-of-tensors-must-match-except-in-dimension-0-pls-help/40852" title="https://discuss.pytorch.org/t/runtimeerror-invalid-argument-0-sizes-of-tensors-must-match-except-in-dimension-0-pls-help/40852"&gt;RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. pls help - PyTorch Forums&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I have no idea, how to identified the bad chips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Vladimir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2019 14:52:53 GMT</pubDate>
    <dc:creator>VHolubec</dc:creator>
    <dc:date>2019-12-02T14:52:53Z</dc:date>
    <item>
      <title>Deep learning - invalid argument 0: Sizes of tensors must match except in dimension 0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838046#M3409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Dear all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;I have issue with deep learning tools. I exported 12 000 training chips from Esri Imagery basemap to TIFF - see settings.png&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TIFFs looks fine as well as the labels file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On calling &lt;STRONG&gt;&lt;EM&gt;data = prepare_data(data_path, class_mapping={1:'Pool'}, batch_size=64) I am getting error -&amp;nbsp;UserWarning: It's not possible to collate samples of your dataset together in a batch.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; warn(message)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;data.show_batch() -&amp;nbsp; &lt;/EM&gt;&lt;/STRONG&gt;now&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&amp;nbsp;I am getting result - &lt;EM&gt;&lt;STRONG&gt;RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 19 and 10 in dimension 3 at ..\aten\src\TH/generic/THTensor.cpp:711&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;I am not sure what does it mean? Does the Export training data tool corrupt some chips? Is there a way how to find out which chips are corrupted? Or how to fix it?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;The chips were created in PRO by Export training data tool, so these could be fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Thank you for any idea.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Vladimir&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 16:16:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838046#M3409</guid>
      <dc:creator>VHolubec</dc:creator>
      <dc:date>2019-11-29T16:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deep learning - invalid argument 0: Sizes of tensors must match except in dimension 0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838047#M3410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to export the training data with chip size &amp;gt; 224 and choose jpg or png as your Image format. Also the cell size is very less, i do not know what kind of objects you are try to detect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 18:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838047#M3410</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-11-29T18:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deep learning - invalid argument 0: Sizes of tensors must match except in dimension 0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838048#M3411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://community.esri.com/migrated-users/39024"&gt;Sandeep Kumar&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am learning a model for pools. When I set bigger chip size, I am not able to get to detail like the attached one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chip1" class="jive-emoji jive-image image-3 j-img-original" src="https://community.esri.com/legacyfs/online/475047_chip1.PNG" /&gt;&lt;/P&gt;&lt;P&gt;- the size is 200 to 200 pixels and cell size 0.045 (because the map is in WebMercator, I believe it´s in meters - am I right? ) - and the real size of the area is around 10x meters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the chip to 256x256 and pixel size to 0.2, I don´t think the resul is usable - see&amp;nbsp;&lt;IMG alt="chip2" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/475044_000000007.png" /&gt;&lt;/P&gt;&lt;P&gt;So I don´t know, if there is any other way, how to set the export of training chips more proper way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error I mentioned in the initial post - have you seen this? It seems for me some issue with the chips themselves. -&amp;nbsp;&lt;A class="link-titled" href="https://discuss.pytorch.org/t/runtimeerror-invalid-argument-0-sizes-of-tensors-must-match-except-in-dimension-0-pls-help/40852" title="https://discuss.pytorch.org/t/runtimeerror-invalid-argument-0-sizes-of-tensors-must-match-except-in-dimension-0-pls-help/40852"&gt;RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. pls help - PyTorch Forums&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I have no idea, how to identified the bad chips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Vladimir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 14:52:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838048#M3411</guid>
      <dc:creator>VHolubec</dc:creator>
      <dc:date>2019-12-02T14:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Deep learning - invalid argument 0: Sizes of tensors must match except in dimension 0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838049#M3412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try a bigger chip size like 256px and for pools i would suggest a cell size of around 50cm (.5 in webmercetor) so that the model can learn the surrounding context too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 15:09:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838049#M3412</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-02T15:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deep learning - invalid argument 0: Sizes of tensors must match except in dimension 0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838050#M3413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/39024"&gt;Sandeep Kumar&lt;/A&gt;, with this settings it works. The problem is, that it seems to me so coarse (in comparision to previous settings) - see&amp;nbsp;&lt;IMG alt="chip256-50cm" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/475048_chip256-50cm.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the batch looks like this - no so ideal - no on every chips the pools is highlighted.&lt;IMG alt="batch" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/475088_show_batch.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Please could you explain, why the ptevious settings did not work? Is there any limit to chip size and number of chips, which Python API could handle?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vladimir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 19:37:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838050#M3413</guid>
      <dc:creator>VHolubec</dc:creator>
      <dc:date>2019-12-02T19:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Deep learning - invalid argument 0: Sizes of tensors must match except in dimension 0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838051#M3414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no limit on the chip number, but with a greater chip size you would require more memory to handle it. the show batch looks reasonable to me, to get a little bit zoomed in chips you can try reducing the cell size to 0.3 or 0.4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2019 09:36:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-invalid-argument-0-sizes-of-tensors/m-p/838051#M3414</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-04T09:36:09Z</dc:date>
    </item>
  </channel>
</rss>

