Platform: Colab ✅

Hi Jim

Thanks. Your tip to change the input to the method to path/folder/file as below actually worked.

download_images(path/folder/file, dest, max_pics=200)

Thanks at ton!

Hi

In notebook 2, image classification problem, the doc() method doesn’t work. help() works, but not doc. It throws the below error. Any ideas, what is happening here?

Just as an update. I have tried pretty much everything and the only way to train large datasets on Colab I could find was to run !cd data && gsutil -m cp -r gs://{yourbucketname}/ . on Colab to temporarily download my data in the Colab workspace. It is obviously pretty long and if Colab crashes you basically have to download the whole dataset all over again. Unluckily, I wasn’t able to mount gcs buckets as normal filesystems (as you would do with Drive), this would be extremely helpful.

If you guys happen to have other suggestion plase let me know

Hey guys, I have been using Kaggle for this course but I’ve decided to switch to Colab. I am doing the lesson 5 SGD-MNIST notebook, and I am getting this file not found error as shown below. It is a really naive doubt but I don’t know how to solve it.


I tried mounting my drive but idk what to do next

Someone please help

You need to path = untar_data(URLs.MNIST_SAMPLE)

Hey Pardha,

I ran into the same problem recently and there is a fix for it here.

I haven’t tinkered anything and am still relying on placing ? (docstring) or ?? (source code) after or before the function I want more information for. Let me know if you try this fix and it works for you. :slight_smile:

Hey guys, I just run the lesson1-pets.ipynb’s code as it was on Colab, however, I got some very weird pictures as below. What is happening here? :pray::pray:

I got the same purple images.

I’m not sure what led to the change to plot_top_losses, but there is a field named heatmap that defaults to True. If you change that code block to the following, it will render the images without the purple overlayed

interp.plot_top_losses(9, figsize=(15,11), heatmap=False)
1 Like

@zrsmithson,
Thx a lot. It worked!!

When I run the below code of lesson3-planet on Colab, I have encountered this problem:

data = (src.transform(tfms, size=128)
       .databunch()
       .normalize(imagenet_stats))

however,sometimes it worked well with the same code,I feel really confused. :disappointed_relieved: Anyone can help me?

Regarding 00_notebook_tutorial, cat_example.jpg is not found, I didn’t need to modify the path. However, I did need to follow instructions in “Getting Set Up”. (I’m also using Colab.) In particular, in Step 4, there is a note that indicates that four lines of code need to be inserted at the top of every jupyter notebook. Once I inserted the lines (and executed them), the cat image appeared. Hope this helps someone.

does anyone know why the runtime keeps getting interrupted after I use ImageCleaner() ??

Just putting this here as I just noticed, if you look at the Files tab, we can select MOUNT DRIVE and it will automatically put the code to mount your Google Drive into a cell!

I also mounted my google drive, but it still doesn’t work for me. Am I missing any other step?

1 Like

Right click on the folder and copy the path to the folder. It might work then.

Thank for @pooya_drv to slightly modify the fastai repo and make this repo tailored for Colab. So, Perth Machine Learning Group could successfully run the Women in Machine Learning Workshop yesterday.

Note: Added the Colab repo link in Wiki.

I downloaded the .pth file of my trained model, however when I returned to training the model (I am working on colab and uploaded the file to /content/models and had created the learner before ),I tried loading the state to the learner using-

learn.load(‘stage_x’)

I was given the error–

unexpected EOF. The file might be corrupted.

Could you help me with this?

Hello! can somebody tell me where the .pkl file is stored as I can’t find it on colab.


Above is my session all the .pth files are there but no “pets.pkl”

Many Thanks mrfabulous1 :smiley::smiley::smiley:

Excited to announce my new widget you guys can use!

I’m working on porting over ImageCleaner so it’s useable for us, but this was my first step in learning about how widgets work in Colab

2 Likes