mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
fix loading models
This commit is contained in:
@@ -216,7 +216,8 @@ def decode_first_stage(model, x, full_quality=True):
|
||||
|
||||
def get_fixed_seed(seed):
|
||||
if seed is None or seed == '' or seed == -1:
|
||||
return int(random.randrange(4294967294))
|
||||
random.seed()
|
||||
seed = int(random.randrange(4294967294))
|
||||
return seed
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user