Downloads · 30 days
0
sidetech2/pet-emotion-classifier
pet-emotion-classifier is a machine learning model from sidetech2. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A deep learning-based web application that identifies animal species from uploaded images. Powered by FastAPI and PyTorch (ResNet18).
Downloads · 30 days
0
Access
Public
Updated Apr 14, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py13.7 KB · 75%
From the Hugging Face model README
A deep learning-based web application that identifies animal species from uploaded images. Powered by FastAPI and PyTorch (ResNet18).
git clone <your-repo-url>
cd FastAPI_Pet_Classifier
python -m venv venv
# On Windows
.\venv\Scripts\Activate.ps1
# On Mac/Linux
source venv/bin/activate
pip install -r requirements.txt
You can easily extend this model to identify any animal.
data/train/ (e.g., data/train/elephant).data/val/.python train.py --data_dir ./data --epochs 10
Start the web server:
python -m uvicorn app:app --reload
Open your browser and navigate to: http://127.0.0.1:8000
This app is ready for deployment on Hugging Face Spaces or Render.
models/model.pth is included in your upload.Developed by Group 6 Deep Learning. Powered by PyTorch ResNet18.