mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
set random range for seed
This commit is contained in:
parent
5d0cfc9db3
commit
440350327c
1 changed files with 1 additions and 1 deletions
|
@ -1566,7 +1566,7 @@ def sd_generate(genparams):
|
|||
height = tryparseint(genparams.get("height", 512),512)
|
||||
seed = tryparseint(genparams.get("seed", -1),-1)
|
||||
if seed < 0:
|
||||
seed = random.randint(0, 2**32-1)
|
||||
seed = random.randint(100000, 999999)
|
||||
sample_method = genparams.get("sampler_name", "k_euler_a")
|
||||
clip_skip = tryparseint(genparams.get("clip_skip", -1),-1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue