Extract Google Drive zip from Google colab notebook

前端 未结 12 1611
醉梦人生
醉梦人生 2020-12-25 12:29

I already have a zip of (2K images) dataset on a google drive. I have to use it in a ML training algorithm. Below Code extracts the content in a string format:



        
12条回答
  •  我在风中等你
    2020-12-25 13:04

    Instead of GetContentString(), use GetContentFile() instead. It will save the file instead of returning the string.

    downloaded.GetContentFile('images.zip') 
    

    Then you can unzip it later with unzip.

提交回复
热议问题