Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,13 @@ import tempfile
|
|
12 |
from classes_and_palettes import GOLIATH_PALETTE, GOLIATH_CLASSES
|
13 |
|
14 |
class Config:
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
17 |
CHECKPOINTS = {
|
18 |
"0.3b": "sapiens_0.3b_goliath_best_goliath_mIoU_7673_epoch_194_torchscript.pt2",
|
19 |
"0.6b": "sapiens_0.6b_goliath_best_goliath_mIoU_7777_epoch_178_torchscript.pt2",
|
|
|
12 |
from classes_and_palettes import GOLIATH_PALETTE, GOLIATH_CLASSES
|
13 |
|
14 |
class Config:
|
15 |
+
os.system(f"wget https://huggingface.co/shimu0215/seg/resolve/main/sapiens_0.3b_goliath_best_goliath_mIoU_7673_epoch_194_torchscript.pt2")
|
16 |
+
|
17 |
+
|
18 |
+
# ASSETS_DIR = os.path.join(os.path.dirname(__file__), 'assets')
|
19 |
+
# CHECKPOINTS_DIR = os.path.join(ASSETS_DIR, "checkpoints")
|
20 |
+
ASSETS_DIR = os.system(f"wget https://huggingface.co/shimu0215/seg/resolve/")
|
21 |
+
CHECKPOINTS_DIR = os.path.join(ASSETS_DIR, "main")
|
22 |
CHECKPOINTS = {
|
23 |
"0.3b": "sapiens_0.3b_goliath_best_goliath_mIoU_7673_epoch_194_torchscript.pt2",
|
24 |
"0.6b": "sapiens_0.6b_goliath_best_goliath_mIoU_7777_epoch_178_torchscript.pt2",
|