Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def setup_cfg(config_file):
|
|
34 |
|
35 |
@spaces.GPU
|
36 |
@torch.no_grad()
|
37 |
-
@torch.autocast(device_type="cuda", dtype=torch.
|
38 |
def inference_automatic(input_img, class_names):
|
39 |
mp.set_start_method("spawn", force=True)
|
40 |
config_file = './configs/ground-truth-warmup/mask-adapter/mask_adapter_convnext_large_cocopan_eval_ade20k.yaml'
|
@@ -59,7 +59,7 @@ def inference_automatic(input_img, class_names):
|
|
59 |
|
60 |
@spaces.GPU
|
61 |
@torch.no_grad()
|
62 |
-
@torch.autocast(device_type="cuda", dtype=torch.
|
63 |
def inference_point(input_img, evt: gr.SelectData,):
|
64 |
|
65 |
x, y = evt.index[0], evt.index[1]
|
|
|
34 |
|
35 |
@spaces.GPU
|
36 |
@torch.no_grad()
|
37 |
+
@torch.autocast(device_type="cuda", dtype=torch.float32)
|
38 |
def inference_automatic(input_img, class_names):
|
39 |
mp.set_start_method("spawn", force=True)
|
40 |
config_file = './configs/ground-truth-warmup/mask-adapter/mask_adapter_convnext_large_cocopan_eval_ade20k.yaml'
|
|
|
59 |
|
60 |
@spaces.GPU
|
61 |
@torch.no_grad()
|
62 |
+
@torch.autocast(device_type="cuda", dtype=torch.float32)
|
63 |
def inference_point(input_img, evt: gr.SelectData,):
|
64 |
|
65 |
x, y = evt.index[0], evt.index[1]
|