wondervictor commited on
Commit
db98a16
·
verified ·
1 Parent(s): 0415acd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.float16)
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.float16)
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]