Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -117,12 +117,12 @@ def infer(prompt,video_in, seed_in, trim_value):
|
|
117 |
pil_i = Image.open(i).convert("RGB")
|
118 |
|
119 |
pix2pix_img = pix2pix(pil_i, prompt, 50, seed_in, 7.5, 1.5)
|
120 |
-
print(pix2pix_img)
|
121 |
-
image = Image.open(pix2pix_img)
|
122 |
-
rgb_im = image.convert("RGB")
|
123 |
|
124 |
# exporting the image
|
125 |
-
|
126 |
result_frames.append(f"result_img-{i}.jpg")
|
127 |
print("frame " + i + "/" + str(n_frame) + ": done;")
|
128 |
|
|
|
117 |
pil_i = Image.open(i).convert("RGB")
|
118 |
|
119 |
pix2pix_img = pix2pix(pil_i, prompt, 50, seed_in, 7.5, 1.5)
|
120 |
+
#print(pix2pix_img)
|
121 |
+
#image = Image.open(pix2pix_img)
|
122 |
+
#rgb_im = image.convert("RGB")
|
123 |
|
124 |
# exporting the image
|
125 |
+
pix2pix_img.save(f"result_img-{i}.jpg")
|
126 |
result_frames.append(f"result_img-{i}.jpg")
|
127 |
print("frame " + i + "/" + str(n_frame) + ": done;")
|
128 |
|