fffiloni commited on
Commit
e61a385
·
1 Parent(s): 613fc84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -126,7 +126,7 @@ def infer():
126
 
127
  prompt = "astronaut crew inside a spaceship, artwork by Claude Monet, beautiful details"
128
 
129
- pil2diff_img = Image.open("./frame1.jpg")
130
  canny_image = get_canny_filter(pil2diff_img)
131
  diffused_img = generate_images(prompt, canny_image)
132
  print(f"DIFFUSED IMG: {diffused_img[1]}")
@@ -140,7 +140,7 @@ def infer():
140
  canny_image2.save("canny2.jpg")
141
  input_frame_1 = read_image(str("diffused_input1.jpg"), ImageReadMode.UNCHANGED)
142
  print(f"FRAME 1: {input_frame_1}")
143
- input_frame_2 = read_image(str("./frame2.jpg"), ImageReadMode.UNCHANGED)
144
  print(f"FRAME 1: {input_frame_2}")
145
 
146
  #img1_batch = torch.stack([frames[0]])
 
126
 
127
  prompt = "astronaut crew inside a spaceship, artwork by Claude Monet, beautiful details"
128
 
129
+ pil2diff_img = Image.open("./basket1.jpg")
130
  canny_image = get_canny_filter(pil2diff_img)
131
  diffused_img = generate_images(prompt, canny_image)
132
  print(f"DIFFUSED IMG: {diffused_img[1]}")
 
140
  canny_image2.save("canny2.jpg")
141
  input_frame_1 = read_image(str("diffused_input1.jpg"), ImageReadMode.UNCHANGED)
142
  print(f"FRAME 1: {input_frame_1}")
143
+ input_frame_2 = read_image(str("./basket2.jpg"), ImageReadMode.UNCHANGED)
144
  print(f"FRAME 1: {input_frame_2}")
145
 
146
  #img1_batch = torch.stack([frames[0]])