I am working on a similar problem; I was able download and use a good dataset provided by DeepSolar Project:
So far, only their validation data is available, but it’s more than enough to train and validate a model. Let me know if you would like to know more about the steps I took.
Edit: solved my problem. If you’re getting a connection error downloading the dataset, make sure you’ve enable internet access, for which you need to verify your phone # via SMS code. There’s a link on the the right hand side of the notebook within the settings frame.
This is the second time Im trying to run the lab. First time it worked fine, now im getting the following error - “NameError: name ‘create_cnn’ is not defined”. Any ideas as to why that is happening now?
I have the same problem as well right now… I just run the same scripts yesterday and it worked fine, but now it prompts “NameError: name ‘create_cnn’ is not defined”…
The Javascript grabs a list of urls and stores them into a txt file, from which you will upload to your jupyter notebook.
The path to the data will be under the “data/bears” folder. Grizzly, teddys, and black will be the subfolders, and as well, categories of your data.
The dest.mkdir call, will create those directories for you. Then the download_image calls, will then grab all of the images listed in the urls.txt file.
You just have to make sure you call the corresponding cells so the downloaded images get placed in the correct folders.
Thanks @utkb and @SiewLin. I am able to run the assignment now. I was using 1.0.48 version of fastai (through AWS SageMaker) hence had to replace with cnn_learner. One thing to note in case others run into same problem - I had to restart the kernel for the change to take into effect.
Hi,
I’m using colab, I want to use Fast.ai v3 but it has fast.ai v1 (1.0.46) installed. How to upgrade to that?
Because of that cnn_learner wasn’t working and had to change it to create_cnn, to make it work.
Please let me know how to upgrade.
I’ve done lesson 1 so the model is sufficiently trained around 6% error rate and thought it would be fun to throw in a picture of my own cat, to see what race the NN think she is.
How would I do this? I don’t want to retrain the network or anything, but rather put the pretrained model to practical use.
Hi @imago,
You’ll be doing exactly that in Lesson 2 (see section on putting it in production)
but for a quick preview you can run the following in a cell
img = open_image(path/to/your/cat/image)
img # to show your cat image
pred_class,pred_idx,outputs = learn.predict(img)
pred_class # what breed your cat is