[PR #162] [MERGED] Fix comfyui generation for sprites and fix default workflow #4487

Closed
opened 2026-10-22 04:08:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • db16df9 Setting up workflow for sprites
  • 03ca1f3 Merge branch 'main' into fix/sprite-comfy-generation
  • d7a714b Fixing default comfy workflow
  • db87b41 Merge branch 'main' into fix/sprite-comfy-generation
  • 0565c7a Merge 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/162 **Author:** [@felorhik](https://github.com/felorhik) **Created:** 4/21/2026 **Status:** ✅ Merged **Merged:** 4/21/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `fix/sprite-comfy-generation` --- ### 📝 Commits (5) - [`db16df9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/db16df99d1db995dd7248733f77f52e05abcacd0) Setting up workflow for sprites - [`03ca1f3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/03ca1f39ffa3f243f2dc54b67824452ac2ba5312) Merge branch 'main' into fix/sprite-comfy-generation - [`d7a714b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d7a714bac0f656193e9fdffaf5db36b7521baaf2) Fixing default comfy workflow - [`db87b41`](https://github.com/Pasta-Devs/Marinara-Engine/commit/db87b4131b266799cb3e3fd5d7f9c982727cc72c) Merge branch 'main' into fix/sprite-comfy-generation - [`0565c7a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0565c7a869b267663372f8bbccaa39226859faa3) Merge branch 'main' into fix/sprite-comfy-generation ### 📊 Changes **2 files changed** (+7 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/sprites.routes.ts` (+2 -0) 📝 `packages/server/src/services/image/image-generation.ts` (+5 -4) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:04 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4487
No description provided.