niulx commited on
Commit
b044371
1 Parent(s): 5c1d9eb

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -1,4 +1,5 @@
1
  import os
 
2
  import torch
3
  import numpy as np
4
  import argparse
@@ -9,6 +10,7 @@ from utils import load_image, load_mask, load_mask_edit
9
  from utils_mask import process_mask_move_torch, process_mask_remove_torch, mask_union_torch, mask_substract_torch, create_outer_edge_mask_torch
10
  from utils_mask import check_mask_overlap_torch, check_cover_all_torch, visualize_mask_list, get_mask_difference_torch, save_mask_list_to_npys
11
 
 
12
 
13
  def run_main(
14
  name="example_tmp",
 
1
  import os
2
+ import spaces
3
  import torch
4
  import numpy as np
5
  import argparse
 
10
  from utils_mask import process_mask_move_torch, process_mask_remove_torch, mask_union_torch, mask_substract_torch, create_outer_edge_mask_torch
11
  from utils_mask import check_mask_overlap_torch, check_cover_all_torch, visualize_mask_list, get_mask_difference_torch, save_mask_list_to_npys
12
 
13
+ @spaces.GPU
14
 
15
  def run_main(
16
  name="example_tmp",