【问题标题】:Image doesn't visible in google colab图片在 google colab 中不可见
【发布时间】:2021-02-15 19:22:54
【问题描述】:

从 IPython.display 导入图像 图片(“驱动器/我的驱动器/狗品种/火车/001513dfcb2ffafc82cccf4d8bbaba97”)

当我在 google colab 中运行上面的代码时,图像不可见,我得到如下输出,

enter image description here

请告诉我如何解决这个问题

【问题讨论】:

  • 确保你的驱动器已经像this tutorial一样挂载到google colab,并通过os.path.exists()检查图像路径

标签: python python-3.x image google-colaboratory


【解决方案1】:

提及图像文件类型以及图像地址解析

例子:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-24
    • 2019-10-31
    • 1970-01-01
    相关资源
    最近更新 更多