kealiu / ComfyUI-ZeroShot-MTrans

ZeST: Zero-Shot Material Transfer from a Single Image
Apache License 2.0
142 stars 6 forks source link

This is the ipadpter changed the material, what is the relationship with zeroshot #2

Open wencxxxxxx opened 3 months ago

wencxxxxxx commented 3 months ago

This is the ipadpter changed the material, what is the relationship with zeroshot

kealiu commented 3 months ago

Add the paper & official demo code, it do use IPA to extract the materials. and also use depth to gather the depth information. And then, extract the illumination information by grey-out the target subject. by replace the original image with an illumination image, it combine the lighting and materials, give out a better image.

This node replace the original image to the illumination image (I-init image in the paper figure), and other function just use exist solutions.

kealiu commented 3 months ago

Thanks for this question, i update the README file.

As the paper figure, Image Encode indeed the IPA, Geometry Guidance indeed the Depth ControlNet.

This node complete the gap of Latent Illumination Guidance in the paper figure.

i hope this can answer your question.

wencxxxxxx commented 3 months ago

You mention "Extracting illumination information by graying the target object, replacing the original image with a light image." I don't think this is right, because at a noise reduction of 1, the light image can no longer affect the diffusion result. This is how I understand it

kealiu commented 3 months ago

my opinion, it add noise to it, but not simple mask out all the inpaint area.

When the original image of inpainting transfer to latent space, the maskout zone still have impact on the input latent.

you can change this Node's brighter input, and find out the changes of output.

wencxxxxxx commented 3 months ago

This is the function of nodes like the function of screenshots, am I right 屏幕截图 2024-04-28 190326

kealiu commented 3 months ago

Yes! Gamma correction similar with the brighter.

wencxxxxxx commented 3 months ago

thanks