从colab笔记本链接到Google驱动器中的图像 [英] Link to images within google drive from a colab notebook
本文介绍了从colab笔记本链接到Google驱动器中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将图像文件存储在驱动器上,并从协作笔记本链接到它们.这可能吗?例如.
I would like to store image files on a drive and link to them from a collaboration notebook. Is this possible? For example.
google-drive/
notebook.ipynb
images/
pic.jpg
在notebook.ipynb
降价单元格内:
![Alternate Text](images/pic.jpg)
推荐答案
Arpit Gupta 公开共享图片:获取文件ID并在此行之前加上
A possible alternative to the great answer by Arpit Gupta for images are publicly shared: Get the ID of your file and prepend this line:
https://docs.google.com/uc?export=download&id=
从此论坛帖子中获取了它.
这篇关于从colab笔记本链接到Google驱动器中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文