Zj-BinXia / DiffRIR

13 stars 2 forks source link

In inf phase, is the gt image is necessary? #4

Open jacky22043 opened 9 months ago

jacky22043 commented 9 months ago

In inference_diffrir.py, it seems that the gt image is required.

Zj-BinXia commented 9 months ago

The GT image is actually the masked image

Zj-BinXia commented 9 months ago

(1-mask)*GT is the actual GT image in inference_diffrir.py.

jacky22043 commented 9 months ago

Can you explain about what's the different in im, mask, gt in inference_diffrir.py. And should those there all be same size ?

Zj-BinXia commented 9 months ago

''im'' denotes the SD inpainting output '' mask'' is the binary mask image ''gt'' represents the complete GT image * (1-mask) They should be in the same size in x1

Zj-BinXia commented 9 months ago

Your question inspired me to create an example for x1, x2, x4. I will complete this part in the next few days to help users better understand the use of my program