This project is a machine learning-based web application that classifies images of animals (dogs, cats, and wolves). The system is built using Python for backend processing and FastAPI for API integration, while the frontend is developed using Vite.js and styled with Tailwind CSS.
- Upload an image via the web interface
- Backend processes the image and classifies it as a dog, cat, or wolf
- Machine learning model trained with a dataset of animal images
- FastAPI-based REST API for communication between frontend and backend
- Preprocessing script to prepare images before inference
- Trained model included in the project
- Backend: Python, FastAPI, TensorFlow/PyTorch (for model inference)
- Frontend: Vite.js, React.js, Tailwind CSS
- Model Training: Custom dataset and training pipeline
- Install dependencies:
cd backend python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate` pip install -r requirements.txt
- Run FastAPI server:
uvicorn main:app --reload
- API will be available at
http://127.0.0.1:8000
- Navigate to the frontend folder:
cd frontend - Install dependencies:
npm install
- Run the frontend:
npm run dev
- The web interface will be available at
http://localhost:5173
If you want to retrain the model, run:
python train.pyThis script will preprocess images, train a deep learning model, and save it in the /models directory.