Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vwkyc/detectron2-api
Detectron2 API with client sample code
https://github.com/vwkyc/detectron2-api
api cpu-inference-api cuda detectron2 flask gunicorn self-hosted
Last synced: about 2 months ago
JSON representation
Detectron2 API with client sample code
- Host: GitHub
- URL: https://github.com/vwkyc/detectron2-api
- Owner: vwkyc
- License: mit
- Created: 2024-08-01T23:23:24.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T16:20:40.000Z (6 months ago)
- Last Synced: 2024-08-15T18:20:36.984Z (6 months ago)
- Topics: api, cpu-inference-api, cuda, detectron2, flask, gunicorn, self-hosted
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup Instructions
1. Update package lists:
```sh
sudo apt-get update
```2. Install dependencies:
```sh
sudo apt-get install -y libgl1-mesa-glx git build-essential python3.8-venv python3.8-dev
```3. Create and activate a virtual environment:
```sh
python3.8 -m venv venv
source venv/bin/activate
```4. Install Python dependencies:
```sh
pip install -r requirements.txt
```5. Clone and install Detectron2:
```sh
git clone https://github.com/facebookresearch/detectron2.git
cd detectron2
pip install -e .
cd ..
```6. Run the application:
```sh
gunicorn -c gunicorn_config.py app:app
```The application will be served on [http://localhost:5000/detect](http://localhost:5000/detect).
Tested working on Ubuntu Jammy 22.04 x86_64, Host: Windows Subsystem for Linux - Ubuntu (2.3.14).