File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,8 @@ def load_config():
185
185
# try loading sampling defaults from the defaults.yaml file
186
186
try :
187
187
defaults = load_yaml (DEFAULT_PATHS .defaults_file )
188
- except :
189
- print ("Warning: Could not load defaults file {0}" .format (DEFAULT_PATHS .defaults_file ))
188
+ except Exception as e :
189
+ print ("Warning: Could not load defaults file {0} - {1} " .format (DEFAULT_PATHS .defaults_file , e ))
190
190
defaults = {}
191
191
192
192
DEFAULT_SAMPLE_SETTINGS = argparse .Namespace ()
@@ -666,9 +666,9 @@ def _reset_args(args):
666
666
for path , artifact in grpc_samples :
667
667
image = cv2 .imdecode (np .fromstring (artifact .binary , dtype = "uint8" ), cv2 .IMREAD_UNCHANGED )
668
668
669
- # if not (mask_image is None): # blend original image back in for in/out-painting, this is required due to vae decoding artifacts
670
- # mask_rgb = 1.-gdl_utils.np_img_grey_to_rgb(mask_image/255.)
671
- # image = np.clip(image*(1.-mask_rgb) + init_image*mask_rgb, 0., 255.)
669
+ if not (mask_image is None ): # blend original image back in for in/out-painting, this is required due to vae decoding artifacts
670
+ mask_rgb = 1. - gdl_utils .np_img_grey_to_rgb (mask_image / 255. )
671
+ image = np .clip (image * (1. - mask_rgb ) + init_image * mask_rgb , 0. , 255. )
672
672
673
673
if "annotation" in args : image = get_annotated_image (image , args )
674
674
You can’t perform that action at this time.
0 commit comments