Select to view content in your preferred language

OSError: -2 in prepare_data() in Deep Learning

01-15-2020 07:59 AM
New Contributor II


I'm trying to apply the Deep Learning methodology illustrated here Extracting Building Footprints From Drone Data | ArcGIS for Developers to my own data. But I'm getting the following error

The command I used was this:

The conda environment that I was working was installed with the following command
 'conda install -c esri arcgis deep-learning-essentials --no-pin'

Anybody know a solution to this?

0 Kudos
2 Replies
New Contributor II

I think I realize what the error was. I was trying to run the command from a different environment than what was used while exporting the training samples.

0 Kudos
by Anonymous User
Not applicable

This issue is usually raised because of a broken pillow installation, you can use the following command to fix the environment.

remove pillow using the command "pip uninstall pillow"

install back pillow using the command "pip install pillow==6.2.1"

Also, please check for the current pillow version supported by ArcGIS Python API while installing back pillow.

0 Kudos