Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -35,14 +35,6 @@ from huggingface_hub import hf_hub_download
|
|
35 |
dtype = torch.bfloat16
|
36 |
device = "cuda"
|
37 |
|
38 |
-
hf_hub_download(
|
39 |
-
repo_id="facebook/sam2.1-hiera-large",
|
40 |
-
local_dir="./checkpoints/",
|
41 |
-
filename="sam2.1_hiera_large.pt",
|
42 |
-
)
|
43 |
-
|
44 |
-
os.environ["SAM2_MODEL_PATH"] = "./checkpoints/sam2.1_hiera_large.pt"
|
45 |
-
|
46 |
config_path = "train/config/XVerse_config_demo.yaml"
|
47 |
|
48 |
config = config_train = get_train_config(config_path)
|
|
|
35 |
dtype = torch.bfloat16
|
36 |
device = "cuda"
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
config_path = "train/config/XVerse_config_demo.yaml"
|
39 |
|
40 |
config = config_train = get_train_config(config_path)
|