wkpark / uddetailer

μ DDetailer, DDetailer fork to support DDetailer as an extension
GNU Affero General Public License v3.0
57 stars 2 forks source link

Some settings do not restore on startup #78

Open jgrubs1 opened 5 months ago

jgrubs1 commented 5 months ago

Certain DD settings do not restore after restarting A1111. These include:

  1. Settings for Secondary model. Particularly, this setting: Inpaint B detections > before inpainting A. As a result, even if a secondary model is configured, and default UI settings are saved and appear in the ui-config.json file (as "customscript/ddetailer.py/txt2img/Inpaint B detections/visible": true, "customscript/ddetailer.py/txt2img/Inpaint B detections/value": "before",), in reality the setting does not show up in the UI after restarting A111, and the second model correctly detects but does not inpaint anything (because Inpaint B detections setting is not restored).

  2. Object classification settings are also not restored and do not appear after relaunching A111. I have mentioned that in a comment to this issue: https://github.com/wkpark/uddetailer/issues/76 , regardless of whether they are set at a primary or secondary model.

In other words, uddetailer correctly saves its settings, but does not restore some of them. In order to have these settings re-appear (and to start working), one has to select a different model from the list, then re-select the original model. Only then the correct settings will show up.

Here's what I see after restarting A1111:

no-A-B

To have object class "hand" back, and to make the secondary model work, I have to re-select it from the list (switch to another model, switch back to yolo/hand):

must-reload
wkpark commented 5 months ago

thank you for your reporting!

I will look into this issue asap.