/py-image-recognize

Primary LanguagePythonISC LicenseISC

Install Python py-image-recognize

Activate virtual environment

python -m venv venv
source venv/bin/activate

Install requirements

pip install -r requirements.txt

Install Nvidia Tensor : pip install --no-cache nvidia-tensorrt --index-url https://pypi.ngc.nvidia.com/

Install PyTorch : pip install -r https://raw.githubusercontent.com/ultralytics/yolov5/master/requirements.txt

Launch dev project

uvicorn app:app --reload

Launch prod project with docker

docker build -t py-image-recognize .
docker run --rm -ti -p 8484:8484 py-image-recognize