ERROR

"cannot identify image file" %r" % (filename if filename else fp)

Last Published: November 20, 2020

Error Message

When using the Train Deep Learning Model tool, the tool fails with the following error:

Error:
"cannot identify image file %r" % (filename if filename else fp)

Cause

This issue occurs because the image chips generated from the Export Training Data for Deep Learning tool includes an input raster in an unsupported format. The Train Deep Learning Model tool only supports 8-bit rasters with three bands.

Solution or Workaround

Use 8-bit rasters with three bands as input for the Export Training Data for Deep Learning tool. To check the raster's properties, follow the steps below.

  1. In ArcGIS Pro, right-click the raster in the Contents or Catalog pane, and click Properties.
  2. In the Layer Properties dialog, click Source and expand Raster Information.
  3. Check the Number of Bands and Pixel Depth.
Image of the Raster Properties dialog with the Number of Bands and Pixel Depth of the raster shown.
  1. Click OK.

Article ID:000024361

Software:
  • ArcGIS Pro 2 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic