/food-hunter

An application of CAM (Class Activation Maps) of CNNs. Localizes the food.

Primary LanguageJupyter Notebook

Food Hunting with CNNs

This script does two things:

  • Outputs the probability of the input image containing food
  • Localizes the food in the image

Usage

python findfood.py INPUT_IMAGE_FILENAME OUTPUT_IMAGE_FILENAME

ex. python findfood.py ./bread.jpg ./breadout.jpg

You can download the model from here: [https://s3-us-west-2.amazonaws.com/models-a-c-ozbek/model_food.h5] Put the model file in the same level folder of the script.

Brief Technical Explanation

Results

png png png png png png