Spaces:
Sleeping
Sleeping
Commit
•
089d514
1
Parent(s):
a891a57
Update app.py
Browse files
app.py
CHANGED
@@ -12,12 +12,15 @@ from src.gradio_pipeline import GradioPipeline
|
|
12 |
from src.config.crop_config import CropConfig
|
13 |
from src.config.argument_config import ArgumentConfig
|
14 |
from src.config.inference_config import InferenceConfig
|
|
|
|
|
15 |
|
|
|
|
|
16 |
|
17 |
def partial_fields(target_class, kwargs):
|
18 |
return target_class(**{k: v for k, v in kwargs.items() if hasattr(target_class, k)})
|
19 |
|
20 |
-
|
21 |
# set tyro theme
|
22 |
tyro.extras.set_accent_color("bright_cyan")
|
23 |
args = tyro.cli(ArgumentConfig)
|
|
|
12 |
from src.config.crop_config import CropConfig
|
13 |
from src.config.argument_config import ArgumentConfig
|
14 |
from src.config.inference_config import InferenceConfig
|
15 |
+
import gdown
|
16 |
+
import os
|
17 |
|
18 |
+
folder_url = f"https://drive.google.com/drive/folders/1UtKgzKjFAOmZkhNK-OYT0caJ_w2XAnib"
|
19 |
+
gdown.download_folder(url=folder_url, output="pretrained_weights", quiet=False)
|
20 |
|
21 |
def partial_fields(target_class, kwargs):
|
22 |
return target_class(**{k: v for k, v in kwargs.items() if hasattr(target_class, k)})
|
23 |
|
|
|
24 |
# set tyro theme
|
25 |
tyro.extras.set_accent_color("bright_cyan")
|
26 |
args = tyro.cli(ArgumentConfig)
|