Skip to content

Commit fd17cb1

Browse files
committed
fix param inconsistency
1 parent 27c5c99 commit fd17cb1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

app/src/main/java/io/github/xororz/localdream/ui/screens/ModelRunScreen.kt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,6 +1526,23 @@ fun ModelRunScreen(
15261526
"preparing batch $i"
15271527
)
15281528

1529+
// Update generationParamsTmp to reflect current parameters
1530+
// This allows parameters to be changed during batch execution
1531+
generationParamsTmp = GenerationParameters(
1532+
steps = steps.roundToInt(),
1533+
cfg = cfg,
1534+
seed = 0,
1535+
prompt = prompt,
1536+
negativePrompt = negativePrompt,
1537+
generationTime = "",
1538+
width = currentWidth,
1539+
height = currentHeight,
1540+
runOnCpu = model?.runOnCpu ?: false,
1541+
denoiseStrength = denoiseStrength,
1542+
useOpenCL = useOpenCL,
1543+
scheduler = scheduler
1544+
)
1545+
15291546
val batchIntent = Intent(
15301547
context,
15311548
BackgroundGenerationService::class.java

0 commit comments

Comments
 (0)