简体   繁体   English

我可以将colab项目保存在Google驱动器上,然后上传并稍后开始吗?

[英]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.

相关问题 如何在 Google Drive 中永久保存一个库并从 Google Colab 中加载它? - How can i permantly save a lib in Google Drive and load it from there in Google Colab? Google colab:如何挂载两个 Google Drive 帐户? - Google colab : How can i mount two google drive accounts? 即使我将数据保存在谷歌驱动器上,谷歌 colab 驱动器空间也在减少 - Google colab drive space decreasing even I save data on google drive 如何遍历 Google Drive 文件夹中的多个文本 (.txt) 文件以上传到 Google Colab? - How do I iterate through multiple text(.txt) files in a folder on Google Drive to upload on Google Colab? 如何将包含多个文件夹的文件夹从谷歌驱动器上传到谷歌 colab - How to upload folder with multiple folders from google drive to google colab 无法在 Google Colab 中将 ML model 保存到 Google Drive - Unable to save ML model to Google Drive in Google Colab 在Google Colab中,我使用Pickle Library创建了一个文件,但在Google云端硬盘中找不到该文件 - In Google Colab, I created a file with Pickle Library but I can't find it in Google Drive 如何在 Google Colab 中运行 Github 项目的笔记本? - How can I run notebooks of a Github project in Google Colab? 如何在不使用 Google Drive 的情况下从 Github 将文件上传到 Colab? - How to upload files to Colab from Github without using Google Drive? 如何使用 colab 在谷歌驱动器上保存 np.array? - How to save an np.array on google drive using colab?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM