huchenlei / stable-diffusion-ps-pea

Use Stable Diffusion in Photopea!
GNU General Public License v3.0
74 stars 3 forks source link

Dynamically calculate ControlNet processor resolution (Pixel Perfect) #34

Closed huchenlei closed 11 months ago

huchenlei commented 11 months ago

Previously user need to manually adjust processor resolution, which may leads to undesired preprocessor result.

This PR port the pixel perfect logic from ControlNet so that processor resolution is automatically calculated based on input image size.