mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #162] [MERGED] Fix comfyui generation for sprites and fix default workflow #4487
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#4487
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/162
Author: @felorhik
Created: 4/21/2026
Status: ✅ Merged
Merged: 4/21/2026
Merged by: @SpicyMarinara
Base:
main← Head:fix/sprite-comfy-generation📝 Commits (5)
db16df9Setting up workflow for sprites03ca1f3Merge branch 'main' into fix/sprite-comfy-generationd7a714bFixing default comfy workflowdb87b41Merge branch 'main' into fix/sprite-comfy-generation0565c7aMerge branch 'main' into fix/sprite-comfy-generation📊 Changes
2 files changed (+7 additions, -4 deletions)
View changed files
📝
packages/server/src/routes/sprites.routes.ts(+2 -0)📝
packages/server/src/services/image/image-generation.ts(+5 -4)📄 Description
Why this change
When generating sprites, the comfyui workflow from the connection settings is not passed through. So it will always default to the default comfyui workflow. This is fine for most SDXL setups, but if using models like flux or ernie, they require different text encoders / vae.
Also the default comfyui workflow does not use the generated seed, so if using the same connection, the output would always be the same, regardless of regeneration. So I have updated the workflow to use the generated seed during the generation request. Width / Height were also not used, so I fixed that as well.
What changed
Update sprite generation to pass comfyui workflow.
Update pose generation to pass comfyui workflow.
Update default comfyui workflow to add in placeholders for seed/width/height.
Added an env variable to allow customisation of the comfyui timeout (120 seconds is not always sufficient for some models)
Validation
Setup a comfyui connection, and use a custom workflow and attempt to do sprite / pose generation.
Before update, will fail.
Retry a generation without any custom workflow
Before update, the results will be the same on each generation.
Manual verification notes
I had manually checked with SDXL / Chroma / Flux / Ernie based workflows. With / Without custom workflows added.
First PR here, and a simple one so have not done all the linting / tooling.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.