niulx commited on
Commit
38ae00e
1 Parent(s): dce7d46

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -76,7 +76,7 @@ def run_main(
76
  input_folder = os.path.join(base_input_folder, name)
77
  mask_list = []
78
  for mask_np in mask_np_list:
79
- mask = torch.from_numpy(mask_np)
80
  mask_list.append(mask)
81
 
82
  #mask_list, mask_label_list = load_mask(input_folder)
 
76
  input_folder = os.path.join(base_input_folder, name)
77
  mask_list = []
78
  for mask_np in mask_np_list:
79
+ mask = torch.from_numpy(mask_np.astype(np.uint8))
80
  mask_list.append(mask)
81
 
82
  #mask_list, mask_label_list = load_mask(input_folder)