fix resize mask bug
This commit is contained in:
parent
38c8837af7
commit
9ccc577be2
@ -93,7 +93,7 @@ class InpaintModel:
|
||||
(origin_size[1], origin_size[0]),
|
||||
interpolation=cv2.INTER_CUBIC)
|
||||
|
||||
original_pixel_indices = mask != 255
|
||||
original_pixel_indices = mask < 127
|
||||
inpaint_result[original_pixel_indices] = image[:, :, ::-1][original_pixel_indices]
|
||||
|
||||
if inpaint_result is None:
|
||||
|
@ -1126,8 +1126,7 @@ class Generator(torch.nn.Module):
|
||||
|
||||
FCF_MODEL_URL = os.environ.get(
|
||||
"FCF_MODEL_URL",
|
||||
# "https://github.com/Sanster/models/releases/download/add_mat/Places_512_FullData_G.pth",
|
||||
"/Users/qing/code/github/FcF-Inpainting/places_512_G.pth"
|
||||
"https://github.com/Sanster/models/releases/download/add_fcf/places_512_G.pth",
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user