<?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 prepare_data in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811846#M2496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can follow the steps documented here&amp;nbsp;&lt;A class="jivelink10" href="https://developers.arcgis.com/python/sample-notebooks/extracting-building-footprints-from-drone-data/" title="https://developers.arcgis.com/python/sample-notebooks/extracting-building-footprints-from-drone-data/"&gt;https://developers.arcgis.com/python/sample-notebooks/extracting-building-footprints-from-drone-data/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2020 04:43:23 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-02-13T04:43:23Z</dc:date>
    <item>
      <title>Deep Learning prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811836#M2486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am following the example here for pixel classification:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/pixel-based-classification" title="https://developers.arcgis.com/python/guide/pixel-based-classification" rel="nofollow noopener noreferrer" target="_blank"&gt;Pixel-based Classification Workflow with | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case I am exporting data and labels from ArcPro, when i run:&lt;/P&gt;&lt;P&gt;data = prepare_data(data_path, batch_size=16)&lt;/P&gt;&lt;P&gt;I get error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #b22b31; font-weight: bold;"&gt;TypeError&lt;/SPAN&gt;: int() argument must be a string, a bytes-like object or a number, not 'NoneType'''

&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;What is the parameter settings needed in ArcPro to export data for this example?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;API version:&amp;nbsp;&lt;/SPAN&gt;1.7.0&lt;/P&gt;&lt;P&gt;ArcGIS Pro 2.4&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:32:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811836#M2486</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2021-12-12T09:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Learning prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811837#M2487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i export data as 'labelled tiles' i get error:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;&lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;lib\site-packages\arcgis\learn\_data.py&lt;/SPAN&gt; in &lt;SPAN class="" style="color: #60c6c8;"&gt;prepare_data&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0065ca; font-weight: bold;"&gt;(path, class_mapping, chip_size, val_split_pct, batch_size, transforms, collate_fn, seed, dataset_type, resize_to, **kwargs)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #00a250;"&gt;    357&lt;/SPAN&gt; &lt;SPAN class="" style="color: #00a250;"&gt;    358&lt;/SPAN&gt;     &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;if&lt;/SPAN&gt; dataset_type &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;is&lt;/SPAN&gt; &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;None&lt;/SPAN&gt; &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;and&lt;/SPAN&gt; &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;not&lt;/SPAN&gt; has_esri_files&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;--&amp;gt; 359&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;         &lt;/SPAN&gt;&lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;raise&lt;/SPAN&gt; Exception&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0065ca; font-weight: bold;"&gt;"Could not infer dataset type."&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #00a250;"&gt;    360&lt;/SPAN&gt; &lt;SPAN class="" style="color: #00a250;"&gt;    361&lt;/SPAN&gt;     &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;if&lt;/SPAN&gt; dataset_type &lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0065ca; font-weight: bold;"&gt;"Imagenet"&lt;/SPAN&gt; &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;and&lt;/SPAN&gt; has_esri_files&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b22b31; font-weight: bold;"&gt;Exception&lt;/SPAN&gt;: Could not infer dataset type.&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2019 19:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811837#M2487</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2019-11-25T19:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Learning prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811838#M2488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try specifying the dataset_type. So for Classification tiles, add&amp;nbsp;dataset_type='Classified_Tiles' to call the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;prepare_data function.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:17:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811838#M2488</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-11-27T13:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Learning prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811839#M2489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i try to export&amp;nbsp; 'Classified Tiles' thru export tool it gives error:&amp;nbsp;ERROR 002091&amp;nbsp; Parameters are inconsistent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 19:23:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811839#M2489</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2019-11-27T19:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Learning prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811840#M2490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/286976"&gt;Laurynas Gedminas&lt;/A&gt; Try to follow the methodology documented in this link to export training data for classified tiles here&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/sample-notebooks/extracting-building-footprints-from-drone-data/" title="https://developers.arcgis.com/python/sample-notebooks/extracting-building-footprints-from-drone-data/"&gt;Extracting Building Footprints From Drone Data | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 19:10:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811840#M2490</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-11-29T19:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Learning prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811841#M2491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a screenshot of parameters you have supplied to the tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 08:01:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811841#M2491</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-02T08:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Learning prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811842#M2492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/286976"&gt;Laurynas Gedminas&lt;/A&gt;‌ can you post the full error&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;&lt;SPAN class="" style="color: #b22b31; border: 0px; font-weight: bold; font-size: 14px;"&gt;TypeError&lt;/SPAN&gt;: int() argument must be a string, a bytes-like object or a number, not 'NoneType'''&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 08:03:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811842#M2492</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-02T08:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Learning prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811843#M2493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this gives the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;ERROR 002091&amp;nbsp; Parameters are inconsistent.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;it's 3 band raster, TIFF or PNG still the same, sites were produced by the&amp;nbsp;Training Sample Manager:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG __jive_id="475065" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/475065_pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 17:38:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811843#M2493</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2019-12-02T17:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Learning prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811844#M2494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check if there is any missing values in the ClassValue column&amp;nbsp;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 05:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811844#M2494</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-03T05:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Learning prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811845#M2495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just went through this problem. Documentation says that exporting "classified_tiles" requires a classified raster (thematic) instead of feature class. So I had to do polygon to raster, then 'set raster properties'. Once I did that It let me export. Not sure if this is the correct way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: looking at the 'extract building foot prints' here, my workflow with ultimately not work. I'm trying to prepare the data now for training and I'm getting errors.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2020 21:20:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811845#M2495</guid>
      <dc:creator>stephenescarzaga</dc:creator>
      <dc:date>2020-01-22T21:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Deep Learning prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811846#M2496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can follow the steps documented here&amp;nbsp;&lt;A class="jivelink10" href="https://developers.arcgis.com/python/sample-notebooks/extracting-building-footprints-from-drone-data/" title="https://developers.arcgis.com/python/sample-notebooks/extracting-building-footprints-from-drone-data/"&gt;https://developers.arcgis.com/python/sample-notebooks/extracting-building-footprints-from-drone-data/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 04:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/deep-learning-prepare-data/m-p/811846#M2496</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-13T04:43:23Z</dc:date>
    </item>
  </channel>
</rss>

