mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3725] Feature Request: Persistent style reference ("style plate") for NovelAI V4.5 #2009
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#2009
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 @jswen4-tech on GitHub (Jul 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3725
Originally assigned to: @SpicyMarinara on GitHub.
Feature Request: Persistent style reference ("style plate") for NovelAI V4.5
Summary
Allow a single user-supplied image to be applied as an always-on, style-only precise reference on every NovelAI V4.5 generation, so that art style stays consistent across an entire playthrough without attaching a reference to each character or each request.
Problem
NovelAI V4.5's precise references (director references) support a style-only mode, and it's very effective at locking a consistent art style across generations. But Marinara currently only sends references that are attached per-character (avatar/reference images), and always in
character&stylemode.That leaves a gap: there's no way to say "apply this art style to every image in my game, regardless of which characters are in the scene." Users who want visual consistency across a long playthrough currently get style drift between generations, and the only workaround is repeating style tags in the prompt — which is far weaker than an actual style reference.
This also matters for scenes with no characters (establishing shots, environments), where there's no avatar reference to piggyback on, so those images drift stylistically from the character scenes.
Proposed behavior
A single "style plate" image configured once, which Marinara sends as an additional precise reference on every NovelAI V4.5 generation:
base_caption: "style"), independent of any character references.Working implementation
Running locally against
packages/server/src/services/image/image-generation.ts. The core of it:{mode, strength, fidelity}) aligned positionally with the images, so the plate can bestyleat its own values while avatars staycharacter&styleat theirs.director_reference_descriptions,director_reference_strength_values, anddirector_reference_secondary_strength_values, instead of the current uniform.map(() => constant)calls.The main structural change is exactly that last point: the current code hardcodes one mode and one strength/fidelity for all references, so per-reference settings aren't expressible. Making those arrays per-image is a prerequisite for this feature (and is generally useful — see related note below).
Happy to open a PR.
Open questions / design notes
style-plate.pngfrom the module's own directory, using file presence as the on/off toggle. That's fine as a hack but wrong for a shipped feature — it lives indist/and gets wiped on rebuild, and users shouldn't be editingdist. Upstream this should be a proper setting: a file picker in the image settings, or a configured path, stored with the user's data.NOVELAI_PLATE_STRENGTH,NOVELAI_PLATE_FIDELITY) as a stopgap.style/character/character&stylewould be more flexible.Related: per-reference strength/fidelity
Separate from the style plate itself, the current code applies identical values to every reference:
So a user can't set different strengths for different references, and the web UI's Strength/Fidelity controls have no Marinara equivalent at all. Making these per-image (as this feature requires) would also enable exposing Strength/Fidelity in the UI, which several users would likely want independently of the style plate.
@SpicyMarinara commented on GitHub (Jul 17, 2026):
Resolved by #3732, now merged into staging.