/colab-pytorch-utils

Save files from Google's Colab service to your GoogleDrive.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

colab-pytorch-utils

Simple GDrive-Based file saving from within Google's Colab service

Usage Example:

!wget https://raw.githubusercontent.com/StefOe/colab-pytorch-utils/master/utils.py
import utils
from torchvision.models import AlexNet

m = AlexNet()
gsync = utils.GDriveSync()
torch.save("model.pt")
gsync.update_file_to_folder("model.pt")

Careful, at the moment all files with the same filename will be deleted from your GDrive.