ewrfcas / LeftRefill

LeftRefill: Filling Right Canvas based on Left Reference through Generalized Text-to-Image Diffusion Model (CVPR2024)
Apache License 2.0
52 stars 2 forks source link

Problems with running test_inpainting.py #7

Open zhide730 opened 1 month ago

zhide730 commented 1 month ago

Hello! When I tried to run the test_inpainting.py file, I received the following error: the inpainted image was black. But the inpainting results are normal when using the gradio demo. Can you give me some suggestions? Is there an error in my input format? In my input mask, the pixel value that requires inpainting is 1(white), and the pixel value that does not require inpainting is 0(black). 000000

ewrfcas commented 1 month ago

The mask format is correct (1 means mask, 0 means valid regions). You could provide more details about the "black" inpainted results. Besides, I think that the mask should be dilated to cover the whole object and its shadow.