<?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 Train Deep Learning Model for Building Footprints in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/train-deep-learning-model-for-building-footprints/m-p/1094072#M45019</link>
    <description>&lt;P&gt;From a previous issue we were suggested to run the Deep Learning tool set from the beginning and create our own model based on our own building footprints and imagery instead of using a pre trained model as this ran into errors with larger buildings.&lt;/P&gt;&lt;P&gt;My current workflow is utilizing an area of 10.7 sq miles on a large portion of the city of Kennewick with 12,000 building footprints pre created. The imagery is captured by EagleEye&amp;nbsp; at 12in resolution with 4 bands (4th band is IR). When I reach the train Deep Learning Model tool, it will run for some time in both the Arc Pro 2.8 and 2.7 environments but will error after some time stating that imagery does not contain label files. This is also using the 64 gb virtual machine CPU and not a local GPU on windows 10 64bit and using a duplicated python environment with the deep learning environment packages installed on both for each different version from ESRI website.&lt;/P&gt;&lt;P&gt;Per the error pasted below, I can see the images that are missing labels in both the text file and when I compare the label file and image file contents however if I edit these the tool errors out again with a different error. I have tried checking and unchecking the box for "Output no feature files" when using the Export Training Data for Deep Learning tool and receive the same errors for both. I have provided 2 images of both the Export Training data and Train Deep learning tools.&lt;/P&gt;&lt;P&gt;Please check your dataset. 387 images dont have the corresponding label files.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 232, in &amp;lt;module&amp;gt;&lt;BR /&gt;execute()&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 207, in execute&lt;BR /&gt;show_accuracy=show_accuracy)]&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\arcgis\learn\models\_arcgis_model.py", line 708, in fit&lt;BR /&gt;self.learn.fit_one_cycle(epochs, lr, callbacks=callbacks, **kwargs)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\train.py", line 23, in fit_one_cycle&lt;BR /&gt;learn.fit(cyc_len, max_lr, wd=wd, callbacks=callbacks)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\basic_train.py", line 200, in fit&lt;BR /&gt;fit(epochs, self, metrics=self.metrics, callbacks=self.callbacks+callbacks)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\basic_train.py", line 99, in fit&lt;BR /&gt;for xb,yb in progress_bar(learn.data.train_dl, parent=pbar):&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastprogress\fastprogress.py", line 47, in __iter__&lt;BR /&gt;raise e&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastprogress\fastprogress.py", line 41, in __iter__&lt;BR /&gt;for i,o in enumerate(self.gen):&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\basic_data.py", line 75, in __iter__&lt;BR /&gt;for b in self.dl: yield self.proc_batch(b)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\torch\utils\data\dataloader.py", line 345, in __next__&lt;BR /&gt;data = self._next_data()&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\torch\utils\data\dataloader.py", line 385, in _next_data&lt;BR /&gt;data = self._dataset_fetcher.fetch(index) # may raise StopIteration&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\torch\utils\data\_utils\fetch.py", line 44, in fetch&lt;BR /&gt;data = [self.dataset[idx] for idx in possibly_batched_index]&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\torch\utils\data\_utils\fetch.py", line 44, in &amp;lt;listcomp&amp;gt;&lt;BR /&gt;data = [self.dataset[idx] for idx in possibly_batched_index]&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\data_block.py", line 651, in __getitem__&lt;BR /&gt;if self.item is None: x,y = self.x[idxs],self.y[idxs]&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\data_block.py", line 120, in __getitem__&lt;BR /&gt;if isinstance(idxs, Integral): return self.get(idxs)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\vision\data.py", line 271, in get&lt;BR /&gt;res = self.open(fn)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\arcgis\learn\models\_maskrcnn_utils.py", line 137, in open&lt;BR /&gt;return ArcGISMSImage.open(fn, div=self._div, imagery_type=self._imagery_type)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\arcgis\learn\_utils\common.py", line 193, in open&lt;BR /&gt;raise Exception(message)&lt;BR /&gt;Exception:&lt;BR /&gt;Tried opening image using gdal and encountered the following error&lt;/P&gt;&lt;P&gt;'NoneType' object has no attribute 'ReadAsArray'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;===================================================================&lt;/P&gt;&lt;P&gt;Tried opening image using pillow and encountered the following error&lt;/P&gt;&lt;P&gt;[Errno 2] No such file or directory: 'G:\\GIS\\Caleb\\Bldg Footprint Test\\Image_Chips\\ImageChips\\images\\000004687.tif'&lt;BR /&gt;Failed to execute (TrainDeepLearningModel).&lt;/P&gt;</description>
    <pubDate>Tue, 31 Aug 2021 17:18:48 GMT</pubDate>
    <dc:creator>BC_Admin509</dc:creator>
    <dc:date>2021-08-31T17:18:48Z</dc:date>
    <item>
      <title>Train Deep Learning Model for Building Footprints</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/train-deep-learning-model-for-building-footprints/m-p/1094072#M45019</link>
      <description>&lt;P&gt;From a previous issue we were suggested to run the Deep Learning tool set from the beginning and create our own model based on our own building footprints and imagery instead of using a pre trained model as this ran into errors with larger buildings.&lt;/P&gt;&lt;P&gt;My current workflow is utilizing an area of 10.7 sq miles on a large portion of the city of Kennewick with 12,000 building footprints pre created. The imagery is captured by EagleEye&amp;nbsp; at 12in resolution with 4 bands (4th band is IR). When I reach the train Deep Learning Model tool, it will run for some time in both the Arc Pro 2.8 and 2.7 environments but will error after some time stating that imagery does not contain label files. This is also using the 64 gb virtual machine CPU and not a local GPU on windows 10 64bit and using a duplicated python environment with the deep learning environment packages installed on both for each different version from ESRI website.&lt;/P&gt;&lt;P&gt;Per the error pasted below, I can see the images that are missing labels in both the text file and when I compare the label file and image file contents however if I edit these the tool errors out again with a different error. I have tried checking and unchecking the box for "Output no feature files" when using the Export Training Data for Deep Learning tool and receive the same errors for both. I have provided 2 images of both the Export Training data and Train Deep learning tools.&lt;/P&gt;&lt;P&gt;Please check your dataset. 387 images dont have the corresponding label files.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 232, in &amp;lt;module&amp;gt;&lt;BR /&gt;execute()&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Image Analyst Tools.tbx\TrainDeepLearningModel.tool\tool.script.execute.py", line 207, in execute&lt;BR /&gt;show_accuracy=show_accuracy)]&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\arcgis\learn\models\_arcgis_model.py", line 708, in fit&lt;BR /&gt;self.learn.fit_one_cycle(epochs, lr, callbacks=callbacks, **kwargs)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\train.py", line 23, in fit_one_cycle&lt;BR /&gt;learn.fit(cyc_len, max_lr, wd=wd, callbacks=callbacks)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\basic_train.py", line 200, in fit&lt;BR /&gt;fit(epochs, self, metrics=self.metrics, callbacks=self.callbacks+callbacks)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\basic_train.py", line 99, in fit&lt;BR /&gt;for xb,yb in progress_bar(learn.data.train_dl, parent=pbar):&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastprogress\fastprogress.py", line 47, in __iter__&lt;BR /&gt;raise e&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastprogress\fastprogress.py", line 41, in __iter__&lt;BR /&gt;for i,o in enumerate(self.gen):&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\basic_data.py", line 75, in __iter__&lt;BR /&gt;for b in self.dl: yield self.proc_batch(b)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\torch\utils\data\dataloader.py", line 345, in __next__&lt;BR /&gt;data = self._next_data()&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\torch\utils\data\dataloader.py", line 385, in _next_data&lt;BR /&gt;data = self._dataset_fetcher.fetch(index) # may raise StopIteration&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\torch\utils\data\_utils\fetch.py", line 44, in fetch&lt;BR /&gt;data = [self.dataset[idx] for idx in possibly_batched_index]&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\torch\utils\data\_utils\fetch.py", line 44, in &amp;lt;listcomp&amp;gt;&lt;BR /&gt;data = [self.dataset[idx] for idx in possibly_batched_index]&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\data_block.py", line 651, in __getitem__&lt;BR /&gt;if self.item is None: x,y = self.x[idxs],self.y[idxs]&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\data_block.py", line 120, in __getitem__&lt;BR /&gt;if isinstance(idxs, Integral): return self.get(idxs)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\fastai\vision\data.py", line 271, in get&lt;BR /&gt;res = self.open(fn)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\arcgis\learn\models\_maskrcnn_utils.py", line 137, in open&lt;BR /&gt;return ArcGISMSImage.open(fn, div=self._div, imagery_type=self._imagery_type)&lt;BR /&gt;File "C:\Users\CK1\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\Lib\site-packages\arcgis\learn\_utils\common.py", line 193, in open&lt;BR /&gt;raise Exception(message)&lt;BR /&gt;Exception:&lt;BR /&gt;Tried opening image using gdal and encountered the following error&lt;/P&gt;&lt;P&gt;'NoneType' object has no attribute 'ReadAsArray'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;===================================================================&lt;/P&gt;&lt;P&gt;Tried opening image using pillow and encountered the following error&lt;/P&gt;&lt;P&gt;[Errno 2] No such file or directory: 'G:\\GIS\\Caleb\\Bldg Footprint Test\\Image_Chips\\ImageChips\\images\\000004687.tif'&lt;BR /&gt;Failed to execute (TrainDeepLearningModel).&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 17:18:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/train-deep-learning-model-for-building-footprints/m-p/1094072#M45019</guid>
      <dc:creator>BC_Admin509</dc:creator>
      <dc:date>2021-08-31T17:18:48Z</dc:date>
    </item>
  </channel>
</rss>

