YOLO based cat detector runs in Apple M1 chipset (not tested in any other processor architectures)
anaconda
/miniconda
conda env create -f m1.yaml
conda activate cat-detector
conda env update -f m1.yaml --prune
conda deactivate
conda env remove -n cat-detector
- Test file:
python test.py
- Application:
uvicorn app:app --reload
- Request
curl --request POST 'http://127.0.0.1:8000/detect' \
--header 'Content-Type: application/json' \
--data-raw '{"image":"{{BASE64_ENCODED_IMAGE}}"}'
- Response
[
{
"label": "cat",
"score": 0.72,
"x_min": 66,
"y_min": 544,
"x_max": 946,
"y_max": 858
}
]