Quick Google Colab setup for Part 2 week 1 along with pascal VOC dataset

I was able to run them by decreasing the data(no other option!), or decreasing the embedding size, batch size. How were you able to run the planet (multi-label classification) notebook ?

I ran almost 5-6 notebooks like that. Got help, for the rest.

I submitted to kaggle competitions (dog-breeds, plant-seedling), just by using colab. But, you can’t get into the top using this.

The frequent disconnection was a pain (I think you’ll agree :sweat_smile: ) . I overcame this by running two colabs from different profiles (like, one in incognito mode). This saved me a lot of time.

It isnt that way i guess
Because yesterday itself all my local variables were there even though i switched from Desktop to Laptop for the same nbs
(The cells might seem unexecuted but i directly did model.fit() and it ran )

@ecdrid The machine you’re working on is irrelevant. You can probably use it from your mobile. It’s the VM which causes the issue.

Here’s the nbs running on Colab- (had changed a bit in the directories to match the Jeremy’s as far as possible)

/data -> /data/pascal/ and added another mv line in the script written at the top of the thread by @sourabhd (works like a charm)

Let me know if there is any directory error.

You might receive cuda-runtime error on some cells but just re-run the cell and it disappears

The whole nbs ran successfully on my end.

2 Likes

Thanks, this worked

@sourabhd You can add two things to the script

  • change the data/ to data/pascal Everywhere
  • Add the mv command to move the Devkit(have a look at the nbs shared)(all this in an attempt to match Jeremy’s dir Structure)
  • change the Paths variable a bit below (named path,images etc)(mentioning might help)

It will make easier for others as we have aot of diversity among fellowmates here…

Thanks buddy. That helps :slight_smile:

Thankls @sourabhd. I made the following slight tweak for the installation of fast.ai library.

!pip install fastai==0.7.0

Because the installed version of torchvision on google colab is now incompatible with torch==0.4.1, try this now:

!pip3 install fastai==0.7.0 torchvision==0.1.9 torch==0.4.1
!pip install opencv-python
!apt update && apt install -y libsm6 libxext6
!mkdir data
!wget http://pjreddie.com/media/files/VOCtrainval_06-Nov-2007.tar -P data/
!wget https://storage.googleapis.com/coco-dataset/external/PASCAL_VOC.zip -P data/
!tar -xf data/VOCtrainval_06-Nov-2007.tar -C data/
!unzip data/PASCAL_VOC.zip -d data/
!rm -rf data/PASCAL_VOC.zip data/VOCtrainval_06-Nov-2007.tar
1 Like