Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support custom "alwayson_scripts" #14

Closed
wants to merge 6 commits into from
Closed

support custom "alwayson_scripts" #14

wants to merge 6 commits into from

Conversation

aylz10
Copy link

@aylz10 aylz10 commented Oct 31, 2023

#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:

"alwayson_scripts": {
   "ADetailer": {
     true,
     true,
     "args": [
       {
         "ad_model": "face_yolov8n.pt"
       }
     ]
   }
}

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

@aylz10 aylz10 closed this Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant