If you would prefer to run things locally, you can do that as well.
python3 -m venv venv
source venv/bin/activate
python -m pip install -r requirements.txtSince we are using Python 3.9, you may need to specify the version of python when creating the virtual environment:
python3.9 -m venv venvTo exit the Python Virtual Environment, type the following into terminal:
deactivateThis will start an interactive web application that runs on your local computer at http://127.0.0.1:8501
streamlit run app.pyYou can process a single image using the cli.py script.
python3 cli.py --help
python3 cli.py data/input/image.jpg --dest=data/output/ --json --imagesTo batch process everything in the data/input folder, use the batch.py script.
python3 batch.py --help
python3 batch.py --json --imagesYou will likely need to run this command before you can run the install process ( replace
3.9inpython3.9-venvwith your machines version of python )
sudo apt install python3.9-venv