<?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: OSError: cannot identify image file in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806848#M2301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Hello I have *the same prbm
Please help me
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #de2900; background-color: #ffffff; text-decoration: none; padding: 0px 0px 0.25rem;"&gt;\Users\CE-PC\AppData\Local\ESRI\conda\envs\deeplearning\Lib\site-packages\PIL\Image.py", line 2822, in open     raise IOError("cannot identify image file %r" % (filename if filename else fp)) OSError: cannot identify image file 'C:\\Export1\\images\\000000000.tif'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff; margin: 0px 4px 0px 0px; padding: 0px 0px 0.25rem;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #de2900; background-color: #ffffff; text-decoration: none; padding: 0px 0px 0.25rem;"&gt;Échec de l’exécution de (TrainDeepLearningModel).&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:24:36 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-12T09:24:36Z</dc:date>
    <item>
      <title>OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806843#M2296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-family: georgia, palatino, serif;"&gt;&lt;IMG __jive_id="482549" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/482549_pastedImage_1.png" /&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-family: helvetica, arial, sans-serif; font-size: 15px;"&gt;I have this issue when I try to use prepare_data function. I already have the newest version of pillow. &lt;/SPAN&gt;
&lt;SPAN style="font-family: helvetica, arial, sans-serif; font-size: 15px;"&gt;I also noticed that the tiff files that I get from the "export training data for deep learning" can not be opened &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;. 
&lt;IMG __jive_id="482555" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/482555_pastedImage_4.png" /&gt;&lt;/SPAN&gt;(constantly showing this)
&lt;SPAN style="font-family: helvetica, arial, sans-serif; font-size: 15px;"&gt; &lt;IMG __jive_id="482551" class="image-2 jive-image" height="526" src="https://community.esri.com/legacyfs/online/482551_pastedImage_3.png" width="269" /&gt;
&lt;/SPAN&gt;&lt;SPAN style="font-family: helvetica, arial, sans-serif; font-size: 15px;"&gt;As fopr the meta data format, I tried labeled tiles, classified tiles, KITTI labels and PASCAL VOC format. None of their output tiff can be opened.&lt;/SPAN&gt;

&lt;SPAN style="font-family: helvetica, arial, sans-serif; font-size: 15px;"&gt;I m wondering how can I fix this? Thank you!&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806843#M2296</guid>
      <dc:creator>JingyiHu</dc:creator>
      <dc:date>2021-12-12T09:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806844#M2297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample tile here and the metadata of the tile, it seems that the imagery you are using is multi spectral imagery. You need to convert multi spectral imagery to RGB format with datatype 8-bit unsigned, you can do it so by layer -&amp;gt; right click -&amp;gt; Export Raster and then check render and RGB options while exporting data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also we have added experimental support for multi spectral data, you can trigger that by adding imagery_type='ms'&amp;nbsp; kwarg to prepare_data() method. You can directly used you training data this way, you need to have gdal installed in order to use it. if you are using arcgis pro python environment it would be there by default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2020 14:07:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806844#M2297</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-22T14:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806845#M2298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using ms imagery and had this error. Using imagery_type ='ms' fixed this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;&lt;SPAN class=""&gt;data&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;show_batch&lt;/SPAN&gt;&lt;SPAN class=""&gt;() does not return any images in the notebook. Is this an issue for ms imagery?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 10:33:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806845#M2298</guid>
      <dc:creator>AdrianHughes3</dc:creator>
      <dc:date>2020-05-13T10:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806846#M2299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error in the OP also occurs with the Train Deep learning Model tool in Pro 2.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When working with multispectral imagery do I need to use Notebook and arcgis.learn as opposed to the tools in pro which will not work with ms imagery?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 15:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806846#M2299</guid>
      <dc:creator>AdrianHughes3</dc:creator>
      <dc:date>2020-05-14T15:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806847#M2300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Hello I have *the same prbm
Please help me
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #de2900; background-color: #ffffff; text-decoration: none; padding: 0px 0px 0.25rem;"&gt;\Users\CE-PC\AppData\Local\ESRI\conda\envs\deeplearning\Lib\site-packages\PIL\Image.py", line 2822, in open     raise IOError("cannot identify image file %r" % (filename if filename else fp)) OSError: cannot identify image file 'C:\\Export1\\images\\000000000.tif'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff; margin: 0px 4px 0px 0px; padding: 0px 0px 0.25rem;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #de2900; background-color: #ffffff; text-decoration: none; padding: 0px 0px 0.25rem;"&gt;Échec de l’exécution de (TrainDeepLearningModel).&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:24:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806847#M2300</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T09:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806848#M2301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Hello I have *the same prbm
Please help me
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #de2900; background-color: #ffffff; text-decoration: none; padding: 0px 0px 0.25rem;"&gt;\Users\CE-PC\AppData\Local\ESRI\conda\envs\deeplearning\Lib\site-packages\PIL\Image.py", line 2822, in open     raise IOError("cannot identify image file %r" % (filename if filename else fp)) OSError: cannot identify image file 'C:\\Export1\\images\\000000000.tif'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff; margin: 0px 4px 0px 0px; padding: 0px 0px 0.25rem;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #de2900; background-color: #ffffff; text-decoration: none; padding: 0px 0px 0.25rem;"&gt;Échec de l’exécution de (TrainDeepLearningModel).&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806848#M2301</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T09:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806849#M2302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Hello I have *the same prbm
Please help me
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #de2900; background-color: #ffffff; text-decoration: none; padding: 0px 0px 0.25rem;"&gt;\Users\CE-PC\AppData\Local\ESRI\conda\envs\deeplearning\Lib\site-packages\PIL\Image.py", line 2822, in open     raise IOError("cannot identify image file %r" % (filename if filename else fp)) OSError: cannot identify image file 'C:\\Export1\\images\\000000000.tif'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff; margin: 0px 4px 0px 0px; padding: 0px 0px 0.25rem;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #de2900; background-color: #ffffff; text-decoration: none; padding: 0px 0px 0.25rem;"&gt;Échec de l’exécution de (TrainDeepLearningModel).&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806849#M2302</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T09:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806850#M2303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the following guide to train models on multispectral imagery.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/working-with-multispectral-data/" title="https://developers.arcgis.com/python/guide/working-with-multispectral-data/"&gt;Working with Multispectral Data | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 04:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806850#M2303</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-08-12T04:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806851#M2304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello dear communities&lt;BR /&gt;Thanks for the answers&lt;BR /&gt;Please I reinstated arcgis pro I received the following connection problem.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/504916_pastedImage_1.png" /&gt;&lt;BR /&gt;2nd problem with the notebook: it does not accept the training data generated by arcgis pro? How to generate them and in what format ?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/504929_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/504930_pastedImage_3.png" /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2020 23:28:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806851#M2304</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-08-30T23:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806852#M2305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey @Adrian Hughes did you find a resolution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2020 07:02:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806852#M2305</guid>
      <dc:creator>KeiranBray</dc:creator>
      <dc:date>2020-09-02T07:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806853#M2306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've not looked at this for a while but yes the fix was to use&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;imagery_type ='ms'. Interestingly my training data did not display in the ArcGIS Pro notebook but did display in the jupyter notebook (launched from startmenu under arcgis )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I will be looking at this again soon and will follow the guidelines on ms imagery in the documentation link posted&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2020 08:10:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/806853#M2306</guid>
      <dc:creator>AdrianHughes3</dc:creator>
      <dc:date>2020-09-02T08:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/1042575#M5864</link>
      <description>&lt;P&gt;This error persists when the raster is not multi-spectral.&amp;nbsp; 16-bit does not appear to be supported.&amp;nbsp; And when changing the raster to 8-bit, it does not appear to support RGB rasters.&amp;nbsp; I have been having many of the issues reported with the deep learning toolset, and any support would be appreciated. Below is an error from the python API when trying to view the labeled objects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHarris5_0-1617220856224.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9769i402BD1B4E26ECD14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHarris5_0-1617220856224.png" alt="DavidHarris5_0-1617220856224.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;All the exported .tiff images (I have also tried .png with the same issue) are black squares. They should look something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHarris5_2-1617221875306.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9771iBB2698F4E4178388/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHarris5_2-1617221875306.png" alt="DavidHarris5_2-1617221875306.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 20:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/1042575#M5864</guid>
      <dc:creator>DavidHarris5</dc:creator>
      <dc:date>2021-03-31T20:18:36Z</dc:date>
    </item>
  </channel>
</rss>

