Skip to content

Commit 112cb76

Browse files
psychedeliciousmaryhipp
authored andcommitted
fix: random seed for edit mode imagen
1 parent e56d41a commit 112cb76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

invokeai/frontend/web/src/features/nodes/util/graph/buildLinearBatchConfig.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ export const prepareLinearUIBatch = (
5050
// seedBehaviour = SeedBehaviour.PerRun
5151
const seeds = generateSeeds({
5252
count: iterations,
53-
start: shouldRandomizeSeed ? undefined : seed,
53+
// Imagen3's support for seeded generation is iffy, we are just not going too use in in linear UI generations.
54+
start:
55+
model?.base === 'imagen3' ? randomInt(NUMPY_RAND_MIN, NUMPY_RAND_MAX) : shouldRandomizeSeed ? undefined : seed,
5456
});
5557

5658
secondBatchDatumList.push({

0 commit comments

Comments
 (0)