[英]can i save colab project on google drive and upload and start later?
I use colab.research.google.com
for my research in university, but unfortunately it erasing all my files daily. 我在大学期间使用
colab.research.google.com
做研究,但不幸的是,它每天都会删除我的所有文件。
Yesterday I spent all day for coding, compiling and now I lost all my results... 昨天我花了一整天的时间进行编码,编译,但现在我失去了所有结果...
I want to get some stuff for get the changes from co-laboratory
machine (make dump of all file info before work and after work, then download the changes) then, when I need ma project again - I just want to upload the changes to co-laboratory
and then start my project 我想从
co-laboratory
获得一些东西来进行更改(在工作前和工作后转储所有文件信息,然后下载更改),然后,当我再次需要一个项目时,我只想将更改上传到co-laboratory
,然后开始我的项目
VMs are indeed ephemeral. 虚拟机确实是短暂的。 A typical pattern is to store persistent files in Google Drive by mounting your Drive filesystem.
一种典型的模式是通过挂载云端硬盘文件系统,将持久性文件存储在Google云端硬盘中。
from google.colab import drive
drive.mount('/content/drive')
Then, files that you save to /content/drive
will persist in Drive, and you can access Drive files on that path as well. 然后,您保存到
/content/drive
将保留在Drive中,并且您也可以在该路径上访问Drive文件。
More info: https://colab.research.google.com/notebooks/io.ipynb#scrollTo=u22w3BFiOveA 更多信息: https : //colab.research.google.com/notebooks/io.ipynb#scrollTo=u22w3BFiOveA
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.