<?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: How to save data into a folder after using arcgis.learn.prepare_data in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-save-data-into-a-folder-after-using-arcgis/m-p/1088272#M6476</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/416998"&gt;@lienpham83&lt;/a&gt;&amp;nbsp;we do not support this method as of now, it is inherited from fastai which is the underlying technology driving this datatype. It does not save augmented files on chip but just a reference of data object. In order to train models with augmented dataset you need not do this step. You can directly use this data object and pass in to the target model.&amp;nbsp;&lt;BR /&gt;For example&amp;nbsp;&lt;/P&gt;&lt;P&gt;model = arcgis.learn.UnetClassifier(data)&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sandeep&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 05:23:04 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-08-12T05:23:04Z</dc:date>
    <item>
      <title>How to save data into a folder after using arcgis.learn.prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-save-data-into-a-folder-after-using-arcgis/m-p/1085150#M6424</link>
      <description>&lt;P&gt;After running 'Export training data for deep learning' tool in Arcgis Pro, named as 'training_folder', I did data augmentation on the 'training_folder' using arcgis.learn.prepare_data. Then,I would like to save the result of data augmentation into a folder. However, it has error Below are my code in Python Arcgis Pro:&lt;/P&gt;&lt;PRE&gt;  import arcpy, arcgis
  from arcpy.ia import *
  arcpy.CheckOutExtension("ImageAnalyst")
  data=arcgis.learn.prepare_data(r'C:\training_folder')
  data.save(r'C:\Data\Deep_Learning\test')&lt;/PRE&gt;&lt;P&gt;When I run this script, it has error as below:&lt;/P&gt;&lt;PRE&gt;   Traceback (most recent call last):
    File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
    File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\fastai\basic_data.py", line 155, in save
try_save(self.label_list, self.path, file)
    File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\fastai\torch_core.py", line 411, in try_save
target = open(path/file, 'wb') if is_pathlike(file) else file
PermissionError: [Errno 13] Permission denied: 'C:\\Data\\Deep_Learning\\test'&lt;/PRE&gt;&lt;P&gt;Could you please help me how to&amp;nbsp;save the result of data augmentation into a folder?&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 00:23:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-save-data-into-a-folder-after-using-arcgis/m-p/1085150#M6424</guid>
      <dc:creator>lienpham83</dc:creator>
      <dc:date>2021-08-04T00:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to save data into a folder after using arcgis.learn.prepare_data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-save-data-into-a-folder-after-using-arcgis/m-p/1088272#M6476</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/416998"&gt;@lienpham83&lt;/a&gt;&amp;nbsp;we do not support this method as of now, it is inherited from fastai which is the underlying technology driving this datatype. It does not save augmented files on chip but just a reference of data object. In order to train models with augmented dataset you need not do this step. You can directly use this data object and pass in to the target model.&amp;nbsp;&lt;BR /&gt;For example&amp;nbsp;&lt;/P&gt;&lt;P&gt;model = arcgis.learn.UnetClassifier(data)&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sandeep&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 05:23:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-save-data-into-a-folder-after-using-arcgis/m-p/1088272#M6476</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-12T05:23:04Z</dc:date>
    </item>
  </channel>
</rss>

