Spaces:
Running
Running
revert back to gradio v3 due to upload issue
Browse files- .gitignore +4 -0
- app.py +3 -3
- docker-compose-gpu.yml +15 -0
- docker-compose.yml +1 -8
- requirements.txt +1 -1
.gitignore
CHANGED
@@ -1,3 +1,7 @@
|
|
1 |
com.mp4
|
2 |
flagged/
|
3 |
__pycache__/
|
|
|
|
|
|
|
|
|
|
1 |
com.mp4
|
2 |
flagged/
|
3 |
__pycache__/
|
4 |
+
*.tfstate
|
5 |
+
*.tfstate.backup
|
6 |
+
*.terraform/
|
7 |
+
*.terraform.lock.hcl
|
app.py
CHANGED
@@ -145,6 +145,6 @@ if __name__ == "__main__":
|
|
145 |
"<p style='text-align: center'><a href='https://arxiv.org/abs/2108.11515'>Robust High-Resolution Video Matting with Temporal Guidance</a> | <a href='https://github.com/PeterL1n/RobustVideoMatting'>Github Repo</a></p>"
|
146 |
)
|
147 |
|
148 |
-
block.queue(
|
149 |
-
|
150 |
-
)
|
|
|
145 |
"<p style='text-align: center'><a href='https://arxiv.org/abs/2108.11515'>Robust High-Resolution Video Matting with Temporal Guidance</a> | <a href='https://github.com/PeterL1n/RobustVideoMatting'>Github Repo</a></p>"
|
146 |
)
|
147 |
|
148 |
+
block.queue(api_open=False, max_size=5, concurrency_count=concurrency_count).launch(
|
149 |
+
share=False
|
150 |
+
)
|
docker-compose-gpu.yml
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: '3.8'
|
2 |
+
services:
|
3 |
+
video-matting:
|
4 |
+
build: .
|
5 |
+
restart: unless-stopped
|
6 |
+
shm_size: 8g
|
7 |
+
ports:
|
8 |
+
- "7860:7860"
|
9 |
+
deploy:
|
10 |
+
resources:
|
11 |
+
reservations:
|
12 |
+
devices:
|
13 |
+
- driver: nvidia
|
14 |
+
capabilities: [gpu]
|
15 |
+
count: all
|
docker-compose.yml
CHANGED
@@ -5,11 +5,4 @@ services:
|
|
5 |
restart: unless-stopped
|
6 |
shm_size: 8g
|
7 |
ports:
|
8 |
-
- "7860:7860"
|
9 |
-
deploy:
|
10 |
-
resources:
|
11 |
-
reservations:
|
12 |
-
devices:
|
13 |
-
- driver: nvidia
|
14 |
-
capabilities: [gpu]
|
15 |
-
count: all
|
|
|
5 |
restart: unless-stopped
|
6 |
shm_size: 8g
|
7 |
ports:
|
8 |
+
- "7860:7860"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.txt
CHANGED
@@ -5,4 +5,4 @@ torchaudio
|
|
5 |
torchvision
|
6 |
tqdm
|
7 |
pims
|
8 |
-
gradio
|
|
|
5 |
torchvision
|
6 |
tqdm
|
7 |
pims
|
8 |
+
gradio==3.50.2
|