Spaces:
Running
Running
Fix code
Browse files
app.py
CHANGED
@@ -998,7 +998,7 @@ def worker_video(input_video, end_frame, end_stillness, prompts, n_prompt, seed,
|
|
998 |
end_latent = image_encode(
|
999 |
end_frame, target_width=width, target_height=height, vae=vae,
|
1000 |
image_encoder=image_encoder, feature_extractor=feature_extractor, device=gpu
|
1001 |
-
)[
|
1002 |
end_frame = None
|
1003 |
end_latent = end_latent.to(dtype=torch.float32, device=cpu)
|
1004 |
else:
|
@@ -2087,7 +2087,7 @@ with block:
|
|
2087 |
"./img_examples/Example5.png", # input_image
|
2088 |
"./img_examples/Example6.png", # end_image
|
2089 |
0, # image_position
|
2090 |
-
|
2091 |
"A woman jumps out of the train and arrives on the ground, viewed from the outside, photorealistic, realistic, amateur photography, midday, insanely detailed, 8k", # prompt
|
2092 |
"start_end", # generation_mode
|
2093 |
"Missing arm, long hand, unrealistic position, impossible contortion, visible bone, muscle contraction, poorly framed, blurred, blurry, over-smooth, jumpcut, crossfader, crossfading", # n_prompt
|
|
|
998 |
end_latent = image_encode(
|
999 |
end_frame, target_width=width, target_height=height, vae=vae,
|
1000 |
image_encoder=image_encoder, feature_extractor=feature_extractor, device=gpu
|
1001 |
+
)[0]
|
1002 |
end_frame = None
|
1003 |
end_latent = end_latent.to(dtype=torch.float32, device=cpu)
|
1004 |
else:
|
|
|
2087 |
"./img_examples/Example5.png", # input_image
|
2088 |
"./img_examples/Example6.png", # end_image
|
2089 |
0, # image_position
|
2090 |
+
0, # end_stillness
|
2091 |
"A woman jumps out of the train and arrives on the ground, viewed from the outside, photorealistic, realistic, amateur photography, midday, insanely detailed, 8k", # prompt
|
2092 |
"start_end", # generation_mode
|
2093 |
"Missing arm, long hand, unrealistic position, impossible contortion, visible bone, muscle contraction, poorly framed, blurred, blurry, over-smooth, jumpcut, crossfader, crossfading", # n_prompt
|