Is fastai broke on colab?

!curl -s https://course.fast.ai/setup/colab | bash

Updating fastai… featuretools 0.4.1 has requirement pandas>=0.23.0, but you’ll have pandas 0.22.0 which is incompatible. albumentations 0.1.12 has requirement imgaug<0.2.7,>=0.2.5, but you’ll have imgaug 0.2.8 which is incompatible. Done.


NameError Traceback (most recent call last)

<ipython-input-13-24f407e425f3> in <module>() ----> 1 learn = create_cnn(data, models.resnet34, metrics=error_rate)

NameError: name ‘create_cnn’ is not defined

It was OK last Sunday 3rd Match 2019

It’s cnn_learner now (the deprecation warning has disappeared because of a bug that we’ll fix in the next release).

learn = cnn_learner(data, models.resnet34, metrics=error_rate)
Downloading: “https://download.pytorch.org/models/resnet34-333f7ec4.pth” to /root/.torch/models/resnet34-333f7ec4.pth
87306240it [00:01, 54416408.94it/s]

Smiley Face Thank you.

Got the same issue but instead create_cnn worked, cnn_learner doesn’t work.

learn = create_cnn(data, models.resnet34, metrics=error_rate)
Downloading: “https://download.pytorch.org/models/resnet34-333f7ec4.pth” to /root/.torch/models/resnet34-333f7ec4.pth
87306240it [00:00, 105084170.80it/s]

Hi Gary
I have just run lesson 1 again and it still works.
Regards Conwyn

learn = cnn_learner(data, models.resnet34, metrics=error_rate)
Downloading: “https://download.pytorch.org/models/resnet34-333f7ec4.pth” to /root/.torch/models/resnet34-333f7ec4.pth
87306240it [00:00, 92075163.89it/s]

My enter commands were
!curl -s https://course.fast.ai/setup/colab | bash
%reload_ext autoreload
%autoreload 2
%matplotlib inline
from fastai.vision import *
from fastai.metrics import error_rate

Had the same issue, updating the environment, git pulling, and doing pip install fastai --upgrade did the trick for me. Now it works just fine.