Closed deepmayuot closed 7 months ago
1 - v
on a floating point grayscale image is "invert" so as to get a black image with white lines or a white image with black lines. I think the assumption here is: canny images are usually generated with a canny edge detector, which outputs black images with white lines, whereas lineart images are usually scanned from real paper. it's for convienience.
1 - v
on a floating point grayscale image is "invert" so as to get a black image with white lines or a white image with black lines. I think the assumption here is: canny images are usually generated with a canny edge detector, which outputs black images with white lines, whereas lineart images are usually scanned from real paper. it's for convienience.
Thanks for your quick reply!
Thanks for sharing the code!
I noticed that the the control in cldm.py is as follows:
And we can use such code in gradio_canny.py to generate images:
However, in gradio_lineart.py, the control is as follows:
I am confused about this. Can anyone give some suggestions?