ysharma HF staff commited on
Commit
685b370
·
1 Parent(s): bd9664b

updated random seed bugs

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", "input_image.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
 
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