updated readme for local install instructions
Browse files
README.md
CHANGED
@@ -10,4 +10,28 @@ pinned: false
|
|
10 |
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
+
# Primate Detection
|
14 |
+
|
15 |
+
## Setup
|
16 |
+
1. Clone this repository through your local terminal by entering:
|
17 |
+
``` shell
|
18 |
+
git lfs install
|
19 |
+
git clone https://huggingface.co/spaces/caltech-animal-tracking/Primate-Detection-GPU
|
20 |
+
```
|
21 |
+
2. Install the requirements using conda and pip.
|
22 |
+
``` shell
|
23 |
+
conda create -n primates
|
24 |
+
conda activate primates
|
25 |
+
pip install -r requirements.txt
|
26 |
+
```
|
27 |
+
3. Change the environment variables to fit your system.
|
28 |
+
|
29 |
+
In ```app.py``` change ```BATCH_SIZE``` and ```CUDA_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.
|
30 |
+
|
31 |
+
4. (Optional) Install FFmpeg if it's missing on your system by following the directions [here](https://ffmpeg.org/download.html).
|
32 |
+
|
33 |
+
5. Run ```app.py``` to install GroundingDINO locally and load the interface.
|
34 |
+
``` shell
|
35 |
+
python3 app.py
|
36 |
+
```
|
37 |
+
|