An extracurricular project to train an image classification deep neural network on Tensorflow and Keras to classify the given input image as a Dog or Cat.
Data set used: https://www.kaggle.com/c/dogs-vs-cats
Application Website: http://dogorcat.pythonanywhere.com/
- Visit the website here.
- Click on
Browse
button to select an image from your local machine. - Click on
Upload
button to upload the selected image on the server. - Sit back and wait for the prediction.
API Endpoint: http://dogorcat.pythonanywhere.com/query
- Check file api.py for a working example of API.
- Specify URL on the line that states
URL = "<URL HERE>"
- Example:
URL = "https://i.redd.it/39w0xd9ersxz.jpg"
- Run file to see the result.
This website is hosted on pythonanywhere servers. Some of the image hosting websites are not in the White list of the host.
You may see the message: Pythonanywhere servers will not let us access that URL! :( Please try a different URL.
, while trying to use the API,