How to download files from Google Drive with Colab etc.
I want to handle large files with Colab
Files provided by the repository author, such as machine learning model datasets and weight checkpoints, are often uploaded to Google Drive.
When handling with Colab, you can mount the drive and create a shortcut, but in the case of Zip files etc., I think that it will be easier to handle if you download it.
Large files cannot be downloaded from google Drive with wget or curl.
gdown
That’s where gdown comes in handy.
import gdownurl = ‘https://drive.google.com/uc?id=**************'
out_path = ‘dataset.zip’ gdown.download(url, out_path, quiet=False)
You can now download it.
🐣
I’m a freelance engineer.
Work consultation
Please feel free to contact us with a brief development description.
rockyshikoku@gmail.com
I am making an app that uses Core ML and ARKit.
We send machine learning / AR related information.