samedi 11 juillet 2020

Unable to open an image through PIL in googlecolab

  !wget https://github.com/lazyprogrammer/machine_learning_examples/blob/master/cnn_class/lena.png
  from PIL import Image 
  im =Image.open('lena.png')

UnidentifiedImageError Traceback (most recent call last) in () ----> 1 im =Image.open('lena.png')

/usr/local/lib/python3.6/dist-packages/PIL/Image.py in open(fp, mode) 2929 warnings.warn(message) 2930 raise UnidentifiedImageError( -> 2931 "cannot identify image file %r" % (filename if filename else fp) 2932 ) 2933

UnidentifiedImageError: cannot identify image file 'lena.png'




Aucun commentaire:

Enregistrer un commentaire