All Projects → LindseyB → not-pepe

LindseyB / not-pepe

Licence: Unlicense license
Basic Pepe/Not-pepe image classifier

Programming Languages

python
139335 projects - #7 most used programming language

not-pepe

Get your tensorflow installed

follow one of the guides here

Train it

python retrain.py \
 --bottleneck_dir=bottlenecks \
 --model_dir=inception \
 --summaries_dir=training_summaries/long \
 --output_graph=retrained_graph.pb \
 --output_labels=retrained_labels.txt \
 --image_dir=images

Classify it

python label_image.py image.jpg

Example output

(tensorflow) $ python label_image.py test-image.jpg
PEPE
(tensorflow) $ python label_image.py catte.png
NOT PEPE

NOT-PEPE AS A SERVICE

Deploy

using cURL:

$ curl -X POST \
  https://starry-lattice-183618.appspot.com \
  -F url=http://i0.kym-cdn.com/photos/images/facebook/000/862/065/0e9.jpg

example response bodies:

{
  "results": "PEPE",
  "status": "OK"
}
{
  "results": "NOT_PEPE",
  "status": "OK"
}

I'm no hero. I put my bra on one boob at a time like everyone else.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].