Spaces:
Runtime error
Runtime error
Update demo_gr.py
Browse files- demo_gr.py +21 -0
demo_gr.py
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import copy
|
| 2 |
import json
|
| 3 |
import os
|
|
|
|
| 1 |
+
'''
|
| 2 |
+
sudo apt-get update && sudo apt-get install git-lfs ffmpeg cbm
|
| 3 |
+
|
| 4 |
+
#### use base
|
| 5 |
+
|
| 6 |
+
git clone https://huggingface.co/spaces/svjack/stable-virtual-camera && cd stable-virtual-camera
|
| 7 |
+
pip install -r requirements.txt
|
| 8 |
+
pip uninstall torch torchvision
|
| 9 |
+
pip install torch==2.5.0 torchvision
|
| 10 |
+
|
| 11 |
+
git clone --recursive https://github.com/naver/dust3r third_party/dust3r
|
| 12 |
+
cd third_party/dust3r
|
| 13 |
+
pip install -r requirements.txt
|
| 14 |
+
cd ../..
|
| 15 |
+
|
| 16 |
+
huggingface-cli login
|
| 17 |
+
|
| 18 |
+
python demo_gr.py
|
| 19 |
+
|
| 20 |
+
'''
|
| 21 |
+
|
| 22 |
import copy
|
| 23 |
import json
|
| 24 |
import os
|