Download data in GoogleColab
Download data in GoogleColab. Unzipping is very very very slow!
- 1. Download files directly in GoogleColab
- 2. Unzip folder in GoogleColab
- 3. Check size of folder in GoogleColab
- 4. GitClone a GitHub repository in GoogleDrive
- References
from google.colab import drive
drive.mount('/content/gdrive', force_remount = "True")
root_path = 'gdrive/My Drive/sims-data/malaria/' #change dir to your project folder
!pwd
import os
os.chdir("/content/gdrive/My Drive/sims-data/malaria/")
!pwd
!wget -P '/content/gdrive/My Drive/sims-data/malaria/' 'ftp://lhcftp.nlm.nih.gov/Open-Access-Datasets/Malaria/cell_images.zip'
!ls
!pwd
! rm -R "/content/gdrive/My Drive/sims-data/malaria/cell_images/"
!unzip -q "cell_images.zip"
! du -sh "/content/gdrive/"
from google.colab import drive
drive.mount('/content/gdrive', force_remount = "True")
root_path = 'gdrive/My Drive/' #change dir to your project folder
!pwd
import os
os.chdir(root_path)
!pwd
! git clone https://github.com/simsisim/sims-data.git