I have started using google colab to train neural networks, however the data I have is quite large (4GB and 18GB). I have all this data currently stored in one drive and I don't have enough space on my google drive to transfer these files over.
Is there a way for me to directly access the data from one drive in google colab?
I have tried directly loading the data from my own machine, however I feel this process is too time consuming and my machine really doesn't have enough space to store these files. I have also tried adding download=1 after the ? in the file's hyperlink however this does not download and only displays the hyperlink. While using wget produces a 'ERROR 403: Forbidden.' message.
I would like for the google colab file to download this zipped file and to unzip the data from it in order to preform training.
ok, here is the method download to colab, choose file and right-click download button in onedrive but pause it immediately
then go to the download interface, right-click the paused item, and copy the link address
!wget --no-check-certificate \
https://public.sn.files.1drv.com/xxx\
-O /content/filename.zip
Note: it will invalid in some minutes
For download only, to download folders:
wget
didn't work for me, but curl
is fine)With cliget, you just have to install the add-on in firefox, than start a download of the folder. (Don't have to actually finish.) And at the add-ons' icons, click on cliget, than choose curl, and copy(-paste) the created command.
Note: these are not 'safe' methods, probably shouldn't be used with sensitive contents
(Probably other OneDrive folders stay safe, but I'm not sure. Please confirm me.)
To unzip, one can use unzip
command.
A year passed since the question, but I leave this here, for others. :)
Edit:
For many small files it seems to be really slow, for some reason. (I'm not sure why.) Also (with OneDrive) it seems that reliable only up to a few (2-3) GBs... :(
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With