svjack commited on
Commit
17a707e
·
verified ·
1 Parent(s): 16d4b4d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -0
README.md CHANGED
@@ -52,6 +52,28 @@ display.Video("Island_scene_mix.mp4")
52
  <video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/634dffc49b777beec3bc6448/u5jvzMIvuCbp7GTxIYTjX.mp4"></video>
53
 
54
  ## Character Example
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
  - Without lora
57
 
 
52
  <video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/634dffc49b777beec3bc6448/u5jvzMIvuCbp7GTxIYTjX.mp4"></video>
53
 
54
  ## Character Example
55
+ ```python
56
+ prompt = "The video opens with a close-up of a woman in a white and purple outfit, holding a glowing purple butterfly. She has dark hair and walks gracefully through a traditional Japanese-style village at night."
57
+ i = 50
58
+ generator = torch.Generator("cpu").manual_seed(i)
59
+ pipeline_args = {
60
+ "prompt": prompt,
61
+ "guidance_scale": 6.0,
62
+ "num_inference_steps": 64,
63
+ "height": 480,
64
+ "width": 848,
65
+ "max_sequence_length": 1024,
66
+ "output_type": "np",
67
+ "num_frames": 19,
68
+ "generator": generator
69
+ }
70
+
71
+ video = pipe(**pipeline_args).frames[0]
72
+ export_to_video(video, "char_scene_mix_{}.mp4".format(i))
73
+ from IPython import display
74
+ display.clear_output(wait = True)
75
+ display.Video("char_scene_mix_{}.mp4".format(i))
76
+ ```
77
 
78
  - Without lora
79