Share your work here ✅

After lesson 3, I created a multi-label image classifier that detects McDonald’s food items. It’s available at You input a picture of a McDonald’s meal, and it tells you whether any ‘burger’, ‘fries’, ‘drink’, or ‘nuggets’ items are present.

I think food classification is a really interesting area. Some potential applications could include improving food safety for people with allergies, improving the eating experience for people who are blind, and potentially enabling reverse-engineering of recipes.

Technical details:

  • I used a resnet34 model, and did some progressive resizing. I started out training with 128 size images, then did some fine-tuning, then trained with 256 size images, then did some more fine-tuning
  • I was able to get to ~94% accuracy (with a threshold of 0.2)
  • I followed Jeremy’s suggestion in the lecture, and did a lot of playing around with learn.recorder.plot_losses() to see the effects of different learning rates
  • Getting the data for this was a pain. I was able to automate the image downloading, but then I created a csv file and had to manually input tags for all of my images. I ended up using only ~150 images because it was so tedious. I definitely have a much greater appreciation for people who put together huge datasets!
  • Code for my model is available at GitHub

Hi !

Nice wolf detector ! I like how the Husky wasn’t implemented as a wolf, even though it is certainly the closest dog I know to a wolf ^^

Would you mind sharing how you implemented the uploading of the pic via URL ?

Hi! I wrote a piece on the DeViSE paper which combines word vectors with image classification. If you have any feedback on how to make it more understandable/accessible I would appreciate it. You can find it here:


I agreed the data collection is the most tedious one. Some plausible strategy

  1. First collect pic of images with only 1 food item only, and hopefully this reduces the labor of labelling, and trained an single-label classification model.

  2. Use this model to make predictions on a greatly expanded set of meal photos (multiple food item). Use sliding window or random cropping on each image, your model may predict different food depending on where that cropping landed.

  3. Label the meal photo with all the results from running the model, and you will get multi-labels

So this can bootstrap your data set. The downside is that the model is going to make mistakes and not as good as you doing it manually. So it really depends, if you have massive amount of meal photos, this may worth a try.

I think you can pitch this to McDonald. ;-).


Hi friends
Just published the last part of a 3 part article about predicting malignancy in tumors combining a 2 layer neural network built from scratch in Python and the Wisconsin dataset. Although this is all written in standard Python, I was inspired to begin writing articles because of and I mention related stuff at different points in the articles. I recently finished watching the first pass of the new 7 lessons of V3 and I look forward to continue enjoying :wink:

The articles include 3D animations of loss landscapes that I created specifically for them

Part 1:

Part 2:

Part 3:


Hi all. I created a multiclass cloud classifier and pushed it to production, combinine lecture 2 and 3.

Its a Resnet50, learned on cca 14 000 cloud images (10 base categories, representing the 10 base cloud types) accuracy around 0.9 after transfer learning and a short period of unfreezing.

You can check it out here: Cloud detector


Thats nice work! Is this “altocumulus”? i opened that web site with my phone and snap the photo you posted. If it doesn’t take you much work, try to deploy it on a mobile device and have it run natively. for iPhone 7S +, the running speed is very respectable, and this allows making inference directly with the video feed. In my opinion, this is another level of UX than the website. Just imagine users pointing their phone and scan the sky, and have the cloud type reported in realtime!

A question I have, do you know of any dataset for identifying rock type? i.e. sedimentary, Igneous, and maybe rough estimate of mineral content (e.g. red looking one has high iron content). This will be highly educational, and for budding geologist, a must have going out in the field. I dreamt of building this ever since i heard that deep learning can make this much more reliable, but i am constantly distracted. I would be surprised if no one has made one yet.

If i have your app as well as this, I can tell whats above me, and below me…

Hi everyone! I created a Pokedex. It’s currently available here. You can input an image of any Pokemon and it tells you what Pokemon it is and you have the option to view more information about the Pokemon after that.

Unfortunately it is a single-label image classifier as I couldn’t find any multi-label Pokemon datasets out there and labeling them myself would be a long process.

Technical Details

  • It’s trained on resnet34, with just horizontal flipping for the images for data augmentation, and I managed to get an accuracy of 87% which I feel is quite alright for the quality of data that I have.
  • The dataset used to train was built through using Bing Image Search API to download around 90 images of each Pokemon, amounting to around 70,000 images before cleaning.
  • A lot of data cleaning had to be done as some images were duplicates of one another, especially for those Pokemon that usually appeared together, or those that evolved from one another. I modified the ImageCleaner code to automatically move around the relabeled images to the correct folders so that cleaning was easier. But even then, there’s still quite a bit of uncleaned data because of the sheer number of images.
  • Code for the webapp is available through the links inside the webapp. I can provide the code for my model if anyone wants it too.

Great fun :slight_smile:
Regarding multi-label, its a bit of work but perhaps you can create it.

The algorithm could be something like:

  1. Take your single-label dataset
  2. Take a random 1-n-sized subsample from it, getting 1-n one-label items (where 1 is what you have now and n is max number of samples you support in multilabel)
  3. Generate a new image from these 1-n images (for example blank canvas, random or roughly random positions where you insert images from 2…Imagine it like throwing cards on a table and then photographing the table). Label it with labels you already have from 2.
  4. Train
  5. PROFIT!!! :smiley:

In theory, it could possibly work. In practice, well theory and practice can differ :wink:

Id love to know if it works if you do it, though.

1 Like

will you be able to teach me how to deploy such models on web?

I shall try a version of what you are suggesting using Pillow over the next few days.

But I’m not sure of how accurate the eventual recognition for actual multi-Pokemon images (such as drawings, posters, screen captures from the anime) would be, considering the fact that they tend to be in different positions or be hindered by parts of other Pokemon.

I just used the template and followed the instructions provided in this thread by the founder of Render.

ok but I was getting error

Hi everyone! I’m working on what I’ve learnt from lesson 1 and I wanted to create a classifier which could detect if two images are a visually similar. So I would have two folders: good matches which contains pairs of images which are similar and bad matches which contains image pairs which are dissimilar. I would then be able to submit any pair of images and the classifier would predict whether they are a good match or not.

Is there a way to set up the classifier so that it takes input as a pair of images instead of just a single image?

Thank you :slight_smile: Glad you like it.
I’ve been thinking about a mobile app but will probably postpone it or let it pass, as I currently suck at mobile development and would probably waste a day or two at it learning the ropes, when someone half-competent could do it in a couple of hours. Also, id prefer it being cross platform (eg. Xamarin) and I am under no illusions that Im good at UI.

That being said if anyone is up for making a nice looking Xamarin shell of a mobile app,it should be relatively easy to integrate it and I’d love to do so.

Also, and perhaps more interestingly, such a project would be a usefull mobile starter for all the OTHER projects (so like Jeremys’ starter but for mobile) and looking at it that way it would be extremely useful.

Re sediments, like the idea. Dont know where you could get data, though. Sorry :slight_smile:

Probably the easiest way would be to put them side by side (so, create a new image combining two alike, or two not alike images). Label according to type.

If i was doing it (it is slightly unusual) id do a small proof of concept not to waste too much time collecting data. Also id take care to exclude image order, so lets say A and B is similiar C and D are not. You’d want to create:

AB, similiar
BA, similiar
CD, not
DC not

(Note that I’m doubling each pair,as you are stiching images but dont really care that AB and BA are differently ordered)

1 Like

That seems as good of a way to do it as any! Thank you!

I am familiar only with Apple Core ML, and only played around with tensorflow lite once.

So i like to state this from my own experience. It is easy only in a few simple case, (eg. single label classification), as soon as you venture off a bit, the difficulty and technical requirement will skyrocket very steeply. So very few ppl will do anything real and new in a couple of hours. Worse if direct GPU programming is required, then even fewer ppl have all these intersected skill set. The good news is that at this stage, it doesn’t take very sophisticated UI to have something effective, and impress users.

I aint familiar with Xamarin, but cross-platform AI mobile is a bit early given a single platform dedicated stuff is hard enough. Tools are still very buggy. ONNX may offer a bridge to that when it eventually comes. I would focus on single platform for now. I assume you only need to take care of CoreML and Tensorflow Mobile.

I think Andrej Karpathy had talked about a summer course last yr where they show how to do a complete end to end: Data -> Training -> Test -> Deploy Mobile. I don’t know what mobile platform he used though. Yes, it is an interesting exercise to provide a template project to do at least a single label classification. For apple, it is almost a drop in/dragdrop sort of thing using their sample app. The only hazard is to migrate the pytorch model to apple core ml model.

I deployed a working version of the classifier on GCP at

This version has been trained on the dinosaurs below:

  • Tyrannosaurus rex
  • Velociraptor
  • Spinosaurus
  • Triceratops
  • Mosasaurus
  • Stegosaurus
  • Pterodactyl
  • Brachiosaurus
  • Allosaurus
  • Apatosaurus

Nice. But I thought they said some dinosaurs were supposed to have hairs?