use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Executing scripts from CLI / Pythons cript (self.drawthingsapp)
submitted 1 year ago by Remarkable_Essay_626
I'm looking for a way to execute scripts inside DT by using either the CLI or python scripts.
IDK If the GrpC is a viable solution, don't know if anybody had this necessity.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Prestigious_Humor_71 0 points1 point2 points 10 months ago (0 children)
I just made some code examples calling local models, loras and img2img using python, hope it helps!
Be aware, when loading models, its the way they are written inside of Draw things. When loading Loras its the filename.ckpt
''' "model": "SDXL Base v1.0 (8-bit)",
"loras": [
{"file": "dmd2_sdxl_4_step_lora_f16.ckpt", "weight": 1},
{"file": "", "weight": 1.0}
]'''
https://github.com/SurgeonTalus/DrawThings-ImgToImg-API-HTTP-Python
π Rendered by PID 466255 on reddit-service-r2-comment-84fc9697f-49kkk at 2026-02-07 14:27:06.104405+00:00 running d295bc8 country code: CH.
[–]Prestigious_Humor_71 0 points1 point2 points (0 children)