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)
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.
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.