Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -126,11 +126,11 @@ def infer(prompt,video_in, seed_in, trim_value):
|
|
126 |
|
127 |
for i in frames_list[0:int(n_frame)]:
|
128 |
pix2pix_img = pix2pix(prompt,5.5,1.5,i,15,"",512,512,seed_in)
|
129 |
-
image = Image.open(pix2pix_img)
|
130 |
-
rgb_im = image.convert("RGB")
|
131 |
|
132 |
# exporting the image
|
133 |
-
|
134 |
result_frames.append(f"result_img-{i}.jpg")
|
135 |
print("frame " + i + "/" + str(n_frame) + ": done;")
|
136 |
|
|
|
126 |
|
127 |
for i in frames_list[0:int(n_frame)]:
|
128 |
pix2pix_img = pix2pix(prompt,5.5,1.5,i,15,"",512,512,seed_in)
|
129 |
+
#image = Image.open(pix2pix_img)
|
130 |
+
#rgb_im = image.convert("RGB")
|
131 |
|
132 |
# exporting the image
|
133 |
+
pix2pix_img.save(f"result_img-{i}.jpg")
|
134 |
result_frames.append(f"result_img-{i}.jpg")
|
135 |
print("frame " + i + "/" + str(n_frame) + ": done;")
|
136 |
|