euIaxs22 commited on
Commit
1a909d2
·
verified ·
1 Parent(s): fe00ea1

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +0 -23
start.sh CHANGED
@@ -36,29 +36,6 @@ python3 - <<'PY'
36
  # print("Erro no setup")
37
 
38
 
39
- import torch
40
- from diffusers import LTXImageToVideoPipeline
41
- from diffusers.utils import export_to_video, load_image
42
-
43
- pipe = LTXImageToVideoPipeline.from_pretrained("Lightricks/LTX-Video", torch_dtype=torch.bfloat16)
44
- pipe.to("cuda")
45
-
46
- image = load_image(
47
- "https://huggingface.co/datasets/a-r-r-o-w/tiny-meme-dataset-captioned/resolve/main/images/8.png"
48
- )
49
- prompt = "A young girl stands calmly in the foreground, looking directly at the camera, as a house fire rages in the background. Flames engulf the structure, with smoke billowing into the air. Firefighters in protective gear rush to the scene, a fire truck labeled '38' visible behind them. The girl's neutral expression contrasts sharply with the chaos of the fire, creating a poignant and emotionally charged scene."
50
- negative_prompt = "worst quality, inconsistent motion, blurry, jittery, distorted"
51
-
52
- video = pipe(
53
- image=image,
54
- prompt=prompt,
55
- negative_prompt=negative_prompt,
56
- width=704,
57
- height=480,
58
- num_frames=161,
59
- num_inference_steps=50,
60
- ).frames[0]
61
- export_to_video(video, "output.mp4", fps=24)
62
 
63
 
64
  PY
 
36
  # print("Erro no setup")
37
 
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
 
41
  PY