annading commited on
Commit
30130d7
·
1 Parent(s): a7fcb99

updated install instructions

Browse files
Files changed (1) hide show
  1. README.md +25 -0
README.md CHANGED
@@ -11,3 +11,28 @@ license: apache-2.0
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
14
+
15
+ # Primate Detection
16
+
17
+ ## Setup
18
+ 1. Clone this repository through your local terminal by entering:
19
+ ``` shell
20
+ git lfs install
21
+ git clone https://huggingface.co/spaces/caltech-animal-tracking/Primate_Detection_V2
22
+ ```
23
+ 2. Install the requirements using conda and pip.
24
+ ``` shell
25
+ conda create -n primate python=3.12.7
26
+ conda activate primate
27
+ pip install -r requirements.txt
28
+ ```
29
+ 3. Change the environment variables to fit your system.
30
+
31
+ 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.
32
+
33
+ 4. (Optional) Install FFmpeg if it's missing on your system by following the directions [here](https://ffmpeg.org/download.html).
34
+
35
+ 5. Run ```app.py``` to load the interface.
36
+ ``` shell
37
+ python app.py
38
+ ```