mix1009 / sdwebuiapi

Python API client for AUTOMATIC1111/stable-diffusion-webui
MIT License
1.35k stars 181 forks source link

Fix ADetailer Disabling #147

Closed TimNekk closed 7 months ago

TimNekk commented 7 months ago

Expected Behavior

result1 = api.img2img(
    ...
    adetailer=[webuiapi.ADetailer()],
)

result2 = api.img2img(
    ...
    adetailer=[],
)

ADetailer will be applied only for result1.

Current Behavior

ADetailer will be applied for both result1 and result2. Actually it will be applied every time if it was used once.

Solution

Using False as a first arg if ADetailer instances are not passed. Source: ADetailer API Wiki