mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4693] [Issue]: NovelAI style plate sends raw Fidelity instead of inverted (1 - fidelity), washing out style transfer #2570
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#2570
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 (Aug 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4693
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The integrated NovelAI V4.5 style plate sends
director_reference_secondary_strength_valuesas the raw Fidelity value, but NovelAI's Fidelity control is inverted on the wire
(
1 - fidelity). At high Fidelity this sends a near-maximal secondary strengthwhere a near-zero value is intended, producing washed-out, flatter, lower-fidelity
style transfer that does not match NovelAI's web UI at identical settings.
Expected behavior
With a Precise reference set to Style at Strength 0.4 / Fidelity 1, Marinara's
output should match the NovelAI web UI at the same settings.
Actual behavior
Marinara's output is flatter and washed-out (weaker shading/contrast) compared to
the web UI at identical Strength/Fidelity/steps/guidance/rescale/sampler. The cause
is a missing Fidelity inversion when building the director-reference parameters.
Location in source
packages/server/dist/services/image/image-generation.js, in the NovelAI requestbuilder:
director_reference_secondary_strength_valuesis sent as the raw Fidelity value.NovelAI's Fidelity slider maps inverted to this field: UI Fidelity 1 corresponds to
secondary strength 0. So Fidelity 1 currently sends 1 instead of 0.
Suggested fix
Invert the style plate's Fidelity when populating the secondary strength values:
Confirmed locally: with this change, Strength 0.4 / Fidelity 1 in Marinara produces
output matching the NovelAI web UI at the same settings; without it, the result is
washed-out. Verified across multiple Fidelity values, not just 1.
Steps to reproduce
guidance rescale 0.7, landscape.
Impact area
Environment
nai-diffusion-4-5-full)Uploaded the fixed version to this bug report.
image-generation.js
@SpicyMarinara commented on GitHub (Aug 6, 2026):
Claimed by @SpicyMarinara. Implementation and validation are being tracked in draft PR #4697.