A newer version of the Gradio SDK is available:
5.23.0
metadata
title: Primate Detection V2
emoji: π
colorFrom: gray
colorTo: purple
sdk: gradio
sdk_version: 4.23.0
app_file: app.py
pinned: false
license: apache-2.0
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Primate Detection
Setup
- Clone this repository through your local terminal by entering:
git lfs install
git clone https://huggingface.co/spaces/caltech-animal-tracking/Primate_Detection_V2
- Install the requirements using conda and pip.
conda create -n primate python=3.12.7
conda activate primate
pip install -r requirements.txt
Change the environment variables to fit your system.
In
app.py
changeBATCH_SIZE
andCUDA_PATH
to reflect current CUDA version and the size of your GPU. You can find your CUDA version by navigating to/usr/local
on your computer. You may need to test a few different batch sizes to find one that works for your computer.(Optional) Install FFmpeg if it's missing on your system by following the directions here.
Run
app.py
to load the interface.
python app.py