fix loading models

This commit is contained in:
Vladimir Mandic
2024-06-02 11:51:42 -04:00
parent 7ea81450ba
commit 3cd12c51f5
4 changed files with 11 additions and 3 deletions
+2 -1
View File
@@ -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