https://github.com/lindseyb/not-pepe
Basic Pepe/Not-pepe image classifier
https://github.com/lindseyb/not-pepe
python tensorflow
Last synced: over 1 year ago
JSON representation
Basic Pepe/Not-pepe image classifier
- Host: GitHub
- URL: https://github.com/lindseyb/not-pepe
- Owner: LindseyB
- License: unlicense
- Created: 2017-10-17T15:25:20.000Z (over 8 years ago)
- Default Branch: trunk
- Last Pushed: 2021-05-25T10:17:03.000Z (about 5 years ago)
- Last Synced: 2025-02-28T21:03:04.736Z (over 1 year ago)
- Topics: python, tensorflow
- Language: Python
- Homepage: https://starry-lattice-183618.appspot.com/
- Size: 96.8 MB
- Stars: 21
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
not-pepe
---
### Get your tensorflow installed
[follow one of the guides here](https://www.tensorflow.org/install/)
### 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
[](https://heroku.com/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"
}
```
