Spaces:
Running
on
Zero
Running
on
Zero
Update main.py
Browse files
main.py
CHANGED
@@ -12,6 +12,9 @@ from utils_mask import check_mask_overlap_torch, check_cover_all_torch, visualiz
|
|
12 |
def run_main(
|
13 |
name="example_tmp",
|
14 |
name_2=None,
|
|
|
|
|
|
|
15 |
dpm="sd",
|
16 |
resolution=512,
|
17 |
seed=42,
|
@@ -72,12 +75,12 @@ def run_main(
|
|
72 |
|
73 |
input_folder = os.path.join(base_input_folder, name)
|
74 |
|
75 |
-
mask_list, mask_label_list = load_mask(input_folder)
|
76 |
assert mask_list[0].shape[0] == resolution, "Segmentation should be done on size {}".format(resolution)
|
77 |
-
try:
|
78 |
-
|
79 |
-
except:
|
80 |
-
|
81 |
|
82 |
if image:
|
83 |
input_folder_2 = os.path.join(base_input_folder, name_2)
|
|
|
12 |
def run_main(
|
13 |
name="example_tmp",
|
14 |
name_2=None,
|
15 |
+
mask_list=None,
|
16 |
+
mask_label_list=None,
|
17 |
+
image_gt=None,
|
18 |
dpm="sd",
|
19 |
resolution=512,
|
20 |
seed=42,
|
|
|
75 |
|
76 |
input_folder = os.path.join(base_input_folder, name)
|
77 |
|
78 |
+
#mask_list, mask_label_list = load_mask(input_folder)
|
79 |
assert mask_list[0].shape[0] == resolution, "Segmentation should be done on size {}".format(resolution)
|
80 |
+
#try:
|
81 |
+
# image_gt = load_image(os.path.join(input_folder, "img_{}.png".format(resolution) ), size = resolution)
|
82 |
+
#except:
|
83 |
+
# image_gt = load_image(os.path.join(input_folder, "img_{}.jpg".format(resolution) ), size = resolution)
|
84 |
|
85 |
if image:
|
86 |
input_folder_2 = os.path.join(base_input_folder, name_2)
|