kohya-ss / sd-webui-additional-networks

GNU Affero General Public License v3.0
1.77k stars 295 forks source link

Hires. fix fix broke masking with img2img #200

Open User545465432 opened 1 year ago

User545465432 commented 1 year ago

File "E:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-additional-networks\scripts\additional_networks.py", line 269, in process_batch network.set_mask(mask, height=p.height, width=p.width, hr_height=p.hr_upscale_to_y, hr_width=p.hr_upscale_to_x) AttributeError: 'StableDiffusionProcessingImg2Img' object has no attribute 'hr_upscale_to_y'

knittely commented 1 year ago

This caused by using the "Resize By" instead of "Resize to" option. Current work around is to used "Resize to" and calculate the dimensions by hand.

honunu commented 1 year ago

I am using Resize to, same error