Spaces:
Paused
Paused
updated random seed bugs
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def inversion(image_in): #, progress=gr.Progress(track_tqdm=True)):
|
|
16 |
image_in.save(img_name)
|
17 |
#image_in.save("input_image.png") #("assets/test_images/cats/input_image.png")
|
18 |
# Run the script file
|
19 |
-
subprocess.run(["python", "src/inversion.py", "--input_image", "
|
20 |
# Open the text file with blip caption
|
21 |
with open(f"output/test_cat/prompt/{img_label}.txt", "r") as file:
|
22 |
# Read the file
|
|
|
16 |
image_in.save(img_name)
|
17 |
#image_in.save("input_image.png") #("assets/test_images/cats/input_image.png")
|
18 |
# Run the script file
|
19 |
+
subprocess.run(["python", "src/inversion.py", "--input_image", f"input_image_{seed}.png", "--results_folder", "output/test_cat"])
|
20 |
# Open the text file with blip caption
|
21 |
with open(f"output/test_cat/prompt/{img_label}.txt", "r") as file:
|
22 |
# Read the file
|