Skip to content

Commit c85ae00

Browse files
committed
fix bug which caused seed to get "stuck" on previous image even when UI specified -1
1 parent 1b5aae3 commit c85ae00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ldm/dream/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def build_opt(post_data, seed, gfpgan_model_exists):
2525
setattr(opt, 'gfpgan_strength', float(post_data['gfpgan_strength']) if gfpgan_model_exists else 0)
2626
setattr(opt, 'upscale', [int(post_data['upscale_level']), float(post_data['upscale_strength'])] if post_data['upscale_level'] != '' else None)
2727
setattr(opt, 'progress_images', 'progress_images' in post_data)
28-
setattr(opt, 'seed', seed if int(post_data['seed']) == -1 else int(post_data['seed']))
28+
setattr(opt, 'seed', None if int(post_data['seed']) == -1 else int(post_data['seed']))
2929
setattr(opt, 'variation_amount', float(post_data['variation_amount']) if int(post_data['seed']) != -1 else 0)
3030
setattr(opt, 'with_variations', [])
3131

0 commit comments

Comments
 (0)