svjack commited on
Commit
171400d
·
verified ·
1 Parent(s): 7a1bfb6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +34 -0
README.md CHANGED
@@ -153,4 +153,38 @@ sudo apt-get update && sudo apt-get install git-lfs cbm ffmpeg
153
 
154
 
155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  <br/>
 
153
 
154
 
155
 
156
+ <br/>
157
+
158
+ ```python
159
+ #### cook rice
160
+ from comfy_script.runtime import *
161
+ load()
162
+ from comfy_script.runtime.nodes import *
163
+ with Workflow():
164
+ vae = HyVideoVAELoader(r'hunyuan_video_vae_bf16.safetensors', 'bf16', None)
165
+ lora = HyVideoLoraSelect('xiangling_test_epoch3.safetensors', 2.0, None, None)
166
+ model = HyVideoModelLoader(r'hunyuan_video_720_cfgdistill_fp8_e4m3fn.safetensors', 'bf16', 'fp8_e4m3fn', 'offload_device', 'sdpa', None, None, lora)
167
+ hyvid_text_encoder = DownloadAndLoadHyVideoTextEncoder('Kijai/llava-llama-3-8b-text-encoder-tokenizer', 'openai/clip-vit-large-patch14', 'fp16', False, 2, 'disabled')
168
+ hyvid_embeds = HyVideoTextEncode(hyvid_text_encoder, "solo,Xiangling, cook rice in a pot, (genshin impact) ,1girl,highres, dynamic", 'bad quality video', 'video', None, None, None)
169
+ samples = HyVideoSampler(model, hyvid_embeds, 478, 512, 49, 25, 8, 9, 42, 1, None, 1, None)
170
+ images = HyVideoDecode(vae, samples, True, 64, 256, True)
171
+ #_ = VHSVideoCombine(images, 24, 0, 'HunyuanVideo', 'video/h264-mp4', False, True, None, None, None)
172
+ _ = VHSVideoCombine(images, 24, 0, 'HunyuanVideo', 'video/h264-mp4', False, True, None, None, None,
173
+ pix_fmt = 'yuv420p', crf=19, save_metadata = True, trim_to_audio = False)
174
+ ```
175
+
176
+ Run the script:
177
+
178
+ ```bash
179
+ python run_t2v_xiangling_lora.py
180
+ ```
181
+
182
+ <br/>
183
+
184
+ - prompt = "solo,Xiangling, cook rice in a pot, (genshin impact) ,1girl,highres, dynamic"
185
+
186
+
187
+ <video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/634dffc49b777beec3bc6448/A1QK5Y3jHCne5Sm0wR8gq.mp4"></video>
188
+
189
+
190
  <br/>