Spaces:
Running
on
Zero
Running
on
Zero
DecoderWQH666
commited on
Commit
•
ace6ee1
1
Parent(s):
7e2c35e
Update app.py
Browse files
app.py
CHANGED
@@ -183,7 +183,9 @@ def generate_image(chose_emb, choice, gender_GAN, prompts_array):
|
|
183 |
# index = "0"
|
184 |
save_dir = os.path.join("test_results/" + gender_GAN) # , index
|
185 |
os.makedirs(save_dir, exist_ok=True)
|
186 |
-
|
|
|
|
|
187 |
random_embedding = torch.randn(1, 1, input_dim).to(device)
|
188 |
print(random_embedding)
|
189 |
if choice == "Create a new character":
|
|
|
183 |
# index = "0"
|
184 |
save_dir = os.path.join("test_results/" + gender_GAN) # , index
|
185 |
os.makedirs(save_dir, exist_ok=True)
|
186 |
+
|
187 |
+
new_seed = random.randint(0, 2**32 - 1)
|
188 |
+
torch.manual_seed(new_seed)
|
189 |
random_embedding = torch.randn(1, 1, input_dim).to(device)
|
190 |
print(random_embedding)
|
191 |
if choice == "Create a new character":
|