Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to unzip a folder in google colab?

I am trying to make an image classification task in Colab but after importing the dataset from the kaggle, the data comes in zip format. And when unzipped, the dataset is not giving a folder but giving a list of images. How can I get a folder outta it?

like image 730
Swain Subrat Kumar Avatar asked Jun 11 '19 06:06

Swain Subrat Kumar


1 Answers

If you are using colab you can just use a ! to send the kernel a bash command.

This means that something like this in a new cell should do the trick:

!unzip my_data.zip -d my_data
like image 52
Stewart_R Avatar answered Sep 28 '22 08:09

Stewart_R