Xu Ma commited on
Commit
b78c4c4
1 Parent(s): 611835b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -239,6 +239,7 @@ def init_shapes(num_paths,
239
  shape_cnt,
240
  pos_init_method=None,
241
  trainable_stroke=False,
 
242
  **kwargs):
243
  shapes = []
244
  shape_groups = []
@@ -289,7 +290,7 @@ def init_shapes(num_paths,
289
  shapes.append(path)
290
  # !!!!!!problem is here. the shape group shape_ids is wrong
291
 
292
- if 'gt' in kwargs:
293
  wref, href = color_ref
294
  wref = max(0, min(int(wref), w-1))
295
  href = max(0, min(int(href), h-1))
 
239
  shape_cnt,
240
  pos_init_method=None,
241
  trainable_stroke=False,
242
+ gt=None,
243
  **kwargs):
244
  shapes = []
245
  shape_groups = []
 
290
  shapes.append(path)
291
  # !!!!!!problem is here. the shape group shape_ids is wrong
292
 
293
+ if gt is not None:
294
  wref, href = color_ref
295
  wref = max(0, min(int(wref), w-1))
296
  href = max(0, min(int(href), h-1))