Update gradio_app.py
Browse files- gradio_app.py +3 -0
gradio_app.py
CHANGED
@@ -23,6 +23,7 @@ from demo.visualizer import Visualizer, ColorMode
|
|
23 |
|
24 |
import gradio as gr
|
25 |
from huggingface_hub import hf_hub_download
|
|
|
26 |
KEY_DICT = {"Cityscapes (19 classes)": "cityscapes",}
|
27 |
|
28 |
SWIN_CFG_DICT = {"cityscapes": "configs/cityscapes/oneformer_swin_large_IN21k_384_bs16_90k.yaml"}
|
@@ -30,6 +31,8 @@ SWIN_CFG_DICT = {"cityscapes": "configs/cityscapes/oneformer_swin_large_IN21k_38
|
|
30 |
SWIN_MODEL_DICT = {"cityscapes": hf_hub_download(repo_id="rubikk179/oneformer_cityscapes_Swin_40000ep",
|
31 |
filename="model_final_swin.pth"),
|
32 |
}
|
|
|
|
|
33 |
|
34 |
CONVNEXT_CFG_DICT = {"cityscapes": "configs/cityscapes/oneformer_convnext_large_bs16_90k.yaml"}
|
35 |
|
|
|
23 |
|
24 |
import gradio as gr
|
25 |
from huggingface_hub import hf_hub_download
|
26 |
+
|
27 |
KEY_DICT = {"Cityscapes (19 classes)": "cityscapes",}
|
28 |
|
29 |
SWIN_CFG_DICT = {"cityscapes": "configs/cityscapes/oneformer_swin_large_IN21k_384_bs16_90k.yaml"}
|
|
|
31 |
SWIN_MODEL_DICT = {"cityscapes": hf_hub_download(repo_id="rubikk179/oneformer_cityscapes_Swin_40000ep",
|
32 |
filename="model_final_swin.pth"),
|
33 |
}
|
34 |
+
print("-------------------------check hub: ",hf_hub_download(repo_id="rubikk179/oneformer_cityscapes_Swin_40000ep",
|
35 |
+
filename="model_final_swin.pth"))
|
36 |
|
37 |
CONVNEXT_CFG_DICT = {"cityscapes": "configs/cityscapes/oneformer_convnext_large_bs16_90k.yaml"}
|
38 |
|