Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#12
Add the asapi field in Custom Mode to add custom "alwayson_scripts" content (compatible with the original controlnet)
For example:
The simple API usage of the ADetailer plug-in is:
Set the Custom Mode 8 content to
{"type":"txt2img", "sdSize":768,"asapi":"{\"ADetailer\": {\"args\": [true,true,{\"ad_model\": \"face_yolov8n. pt\"}]}}"}
It will take effect
PS:
Only custom modes take effect. Built-in txt2img, SDXL txt2img and Preset Modes do not take effect.
Because I don't know how to use Android Studio, Java syntax and interface design, I can only modify it simply like this.
I hope the author can design a special interface similar to “Prompt prefix” to store variables so that all presets can take effect.
The above content is translated using translation software