stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

Is this a bug in the Forge API?

Open xiaoxuwei12345 opened this issue 7 months ago • 1 comments

Shuffle Controlnet works when running in Forge UI, but it doesn't work when running in Forge API(No error reported, but it has no effect). Is this a bug in the Forge API?

By the way, it also works in the A1111 API, but not in the Forge API. The code is as follows:

{ 'enabled': True, 'image': encoded_image, 'module': 'shuffle', 'model': 'control_v11e_sd15_shuffle_fp16 [04a71f87]', 'weight': 2, 'resize_mode': 0, 'lowvram': False, 'processor_res': 512, 'threshold_a': 64, 'threshold_b': 64, 'guidance_start': 0, 'guidance_end': 1, 'control_mode': 2, 'pixel_perfect': False }

xiaoxuwei12345 avatar May 10 '25 08:05 xiaoxuwei12345

Sorry, after further testing, I found that it's not a problem with shuffle Controlnet itself, However, if there is an ip2p Controlnet, shuffle Controlnet will not work. This is a very strange phenomenon, in the A1111 API, ip2p Controlnet and shuffle Controlnet can coexist.

The code is as follows:

{'init_images': [encoded_image], 'prompt': 'cartoon', 'negative_prompt': 'EasyNegative, nsfw', 'denoising_strength': 0.75, 'width': 512, 'height': 512, 'cfg_scale': 17, 'sampler_name': 'Euler a', 'scheduler': 'Align Your Steps', 'steps': 20, 'seed': 1, 'alwayson_scripts': {'controlnet': {'args': [ { 'enabled': True, 'image': encoded_image, 'model': 'control_v11e_sd15_ip2p_fp16 [fabb3f7d]', 'weight': 1, 'resize_mode': 0, 'lowvram': False, 'processor_res': 64, 'threshold_a': 64, 'threshold_b': 64, 'guidance_start': 0, 'guidance_end': 1, 'control_mode': 0, 'pixel_perfect': False }, { 'enabled': True, 'image': encoded_image2, 'module': 'shuffle', 'model': 'control_v11e_sd15_shuffle_fp16 [04a71f87]', 'weight': 2, 'resize_mode': 0, 'lowvram': False, 'processor_res': 512, 'threshold_a': 64, 'threshold_b': 64, 'guidance_start': 0, 'guidance_end': 1, 'control_mode': 2, 'pixel_perfect': False } ]} } }

response = requests.post(url=f'{url}/sdapi/v1/img2img', json=payload)

xiaoxuwei12345 avatar May 10 '25 09:05 xiaoxuwei12345