For now it will classify only 75 models, check them on /available_models, but later will have more than 3K models.
To classify cars go to /car_brand_model_classification and download jpg image, make sure this car model is in list, no matter if there are another objects on the picture, but car should be the main.
After execute you will get the answer in Response Body.
The model is very light and works fast, but the accuracy sometimes is not extremly high. Anyway hope you will like it. I used mobelinet_v3 with transfer learning on PyTorch. You can find details in my repository: link
You can also try Yolo8 functionality on /img_object_detection_to_img. Go to /yolo_classes to check all what Yolo can classify. On /car_model_segment_and_crop you can see how Yolo and OpenCV work together, car segmentation and cropping helped a lot to improve accuracy of model.
You have two options to start the application: using Docker or locally on your machine.
Start the application with the following command:
docker-compose up
To start the application locally, follow these steps:
- Install the required packages:
pip install -r requirements.txt
- Start the application:
uvicorn main:app --reload --port 8001
This repository contains functional tests for a program to ensure the proper operation of the service. To get started with the testing process, you first need to set up the necessary environment. This can be achieved by either installing the required packages or by running the Docker container.
pytest -v --disable-warnings
The baseline was cloned from this repository: Alex-Lekov