Search code examples
pythonpython-3.ximagegoogle-colaboratory

Image doesn't visible in google colab


from IPython.display import Image Image("drive/My Drive/dog-breed/train/001513dfcb2ffafc82cccf4d8bbaba97")

when I run the code above in the google colab, the image doesn't visible and I got the output as below,

enter image description here

Anyone please let me know how to sort this out


Solution

  • Mention the image file type along with the image address parse

    Example:

    from IPython.display import Image 
    Image("/content/test.jpg")