Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

importing zip file in google Colaboratory stored in google drive

I need to access the data stored on google drive in .zip format into the google collaboratory. As to train the model every time I need to upload the data with big size.is there any other efficient way to directly access the data without uploading every time?

like image 598
Nagesh Waghmare Avatar asked Mar 06 '23 12:03

Nagesh Waghmare


1 Answers

A minimal way to extract zip file from google drive

from google.colab import drive
drive.mount('/content/gdrive')

Open the link in a new tab-> you will get a code - copy that back into the prompt you now have access to google drive check:

!unzip "/content/gdrive/My Drive/file_name.zip"
like image 58
AQEEL ALTAF Avatar answered Apr 03 '23 22:04

AQEEL ALTAF