mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #969] Add support for Draw Things as an A1111-compatible image generation backend #472
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#472
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @etherious1804 on GitHub (May 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/969
Problem
Marinara already routes the
drawthingsprovider through the AUTOMATIC1111 dispatch case (packages/server/src/services/image/image-generation.ts—normalizeExplicitImageSourcecoercesdrawthings→automatic1111), but Draw Things' HTTP server diverges from A1111 in several ways that make image generation silently fail or 422 today.What breaks today
cfg_scaleis ignored. Draw Things expectsguidance_scale. A request that sends onlycfg_scalereturnsHTTP 200 {"images": []}after a full generation cycle — looks like success, returns nothing.override_settingscauses HTTP 422. As soon as a user fills in the Model field in the connection editor,generateAutomatic1111addsoverride_settings.sd_model_checkpoint. Draw Things rejects the request entirely withUnrecognized keys: ["override_settings"]. Same forscheduler,restore_faces,n_iter,batch_size.UniPC AYS,DPM++ SDE Substep,TCD,LCM, etc.) only overlaps on five names withSD_WEBUI_SAMPLER_OPTIONS. Picking a Draw Things-specific sampler isn't possible from the UI.width/height. Draw Things does not — it returnsHTTP 422 init_images height doesn't match X from the parameter Y. So any path that passes a reference image (illustrator withuseAvatarReferences, future img2img features) blows up.Repro
http://127.0.0.1:7860, provider Draw Things)Euler afrom the dropdown — request rejected by Draw Things' validatorProposed fix
serviceHintthrough togenerateAutomatic1111and branch onserviceHint === "drawthings".guidance_scale,batch_count; dropoverride_settings,scheduler,restore_faces.sharp(same pattern assprites.routes.ts) and resize the init image to match request dims for Draw Things img2img.SD_WEBUI_SAMPLER_OPTIONSwith the Draw Things-specific samplers, labeled so AUTOMATIC1111 users can distinguish them.Verified locally against Draw Things 1.20260430.0 driving Anima 1.0 (Qwen-Image architecture). Patch ready — opening PR.
Out of scope
@cha1latte commented on GitHub (May 18, 2026):
Triage note: labeling this as
normal-scopebecause it makes the existing Draw Things provider path actually compatible with Draw Things' A1111-like API differences, rather than adding a separate provider architecture.This can stay in the normal enhancement backlog and proceed through the linked implementation PR.