mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 09:04:36 +00:00
store on the image the actual random seed, for reproducibility (#1549)
This commit is contained in:
parent
7dc3e3e64b
commit
5d0cfc9db3
1 changed files with 2 additions and 0 deletions
|
@ -1565,6 +1565,8 @@ def sd_generate(genparams):
|
|||
width = tryparseint(genparams.get("width", 512),512)
|
||||
height = tryparseint(genparams.get("height", 512),512)
|
||||
seed = tryparseint(genparams.get("seed", -1),-1)
|
||||
if seed < 0:
|
||||
seed = random.randint(0, 2**32-1)
|
||||
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