LeftRefill icon indicating copy to clipboard operation
LeftRefill copied to clipboard

Problems with running test_inpainting.py

Open zhide730 opened this issue 1 year ago • 2 comments

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

zhide730 avatar Jun 11 '24 10:06 zhide730

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.

ewrfcas avatar Jun 13 '24 03:06 ewrfcas

hello! @zhide730 how do we prepare dataset for test_inptainting.py?

serizawa-04013958 avatar Aug 23 '24 11:08 serizawa-04013958