Skip to content

Commit

Permalink
chore: increase randomness
Browse files Browse the repository at this point in the history
  • Loading branch information
p1atdev committed Feb 25, 2024
1 parent 6280c3f commit 8620f44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dart/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def get_upmsapling_seeds(
# if custom_seed is specified, use the same seeds for prompts
all_subseeds = [int(custom_seed)] * num_seeds
else:
all_subseeds = [subseed + i for i in range(num_seeds)]
# increase randomness by adding images' seeds
all_subseeds = [
(int(p.seed) + subseed + i) % SEED_MAX for i in range(num_seeds)
]

return all_subseeds

Expand Down

0 comments on commit 8620f44

Please sign in to comment.