Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unziping zipped file in google colab

i ma trying to unzip a zip file in google colab and i get this Error

Archive: object_detection.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of object_detection.zip or object_detection.zip.zip, and cannot find object_detection.zip.ZIP, period.

from google.colab import drive
drive.mount('/content/drive')
!cp '/content/drive/My Drive/slim.zip' slim.zip
!unzip object_detection.zip

i already uploded my zip files on the drive

like image 805
Mohamed Amine Avatar asked Dec 07 '25 05:12

Mohamed Amine


2 Answers

I had the same problem and it was because I had not uploaded the file completelyenter image description here

like image 75
Julian Avatar answered Dec 08 '25 19:12

Julian


Probable reason could be your zip file is corrupt.. may be you are not using proper link.. try downloading the file and then uploading on colab.. it should work.

like image 27
Sushil Surana Avatar answered Dec 08 '25 17:12

Sushil Surana



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!