Spaces:
Sleeping
Sleeping
modified app
Browse files65 unmodified lines6667686970717273747565 unmodified linesif version == 'RestoreFormer':face_enhancer = RestoreFormer(model_path='RestoreFormer.ckpt', upscale=2, arch='RestoreFormer', channel_multiplier=2, bg_upsampler=upsampler)elif version == 'RestoreFormer++':face_enhancer = RestoreFormer(model_path='RestoreFormer++.ckpt', upscale=2, arch='RestoreFormer++', channel_multiplier=2, bg_upsampler=upsampler)try:# _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True, weight=weight)65 unmodified lines6667686970717273747565 unmodified linesif version == 'RestoreFormer':face_enhancer = RestoreFormer(model_path='RestoreFormer.ckpt', upscale=2, arch='RestoreFormer', bg_upsampler=upsampler)elif version == 'RestoreFormer++':face_enhancer = RestoreFormer(model_path='RestoreFormer++.ckpt', upscale=2, arch='RestoreFormer++', bg_upsampler=upsampler)try:# _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True, weight=weight)
app.py+2-2