mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-06 13:01:21 +02:00
store on the image the actual random seed, for reproducibility (#1549)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user