yijin928 commited on
Commit
dca21c9
·
verified ·
1 Parent(s): f718321

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -17
app.py CHANGED
@@ -145,14 +145,14 @@ import_custom_nodes()
145
  downloadandloadcogvideomodel = NODE_CLASS_MAPPINGS[
146
  "DownloadAndLoadCogVideoModel"
147
  ]()
148
- downloadandloadcogvideomodel_1 = downloadandloadcogvideomodel.loadmodel(
149
- model="THUDM/CogVideoX-5b",
150
- precision="bf16",
151
- quantization="disabled",
152
- enable_sequential_cpu_offload=True,
153
- attention_mode="sdpa",
154
- load_device="main_device",
155
- )
156
  loadimage = NODE_CLASS_MAPPINGS["LoadImage"]()
157
  cliploader = NODE_CLASS_MAPPINGS["CLIPLoader"]()
158
  cliploader_20 = cliploader.load_clip(
@@ -170,7 +170,8 @@ cr_upscale_image = NODE_CLASS_MAPPINGS["CR Upscale Image"]()
170
  vhs_videocombine = NODE_CLASS_MAPPINGS["VHS_VideoCombine"]()
171
 
172
  #Add all the models that load a safetensors file
173
- model_loaders = [downloadandloadcogvideomodel_1, cliploader_20]
 
174
 
175
  # Check which models are valid and how to best load them
176
  valid_models = [
@@ -196,14 +197,14 @@ def generate_video(positive_prompt, num_frames, input_image):
196
  # downloadandloadcogvideomodel = NODE_CLASS_MAPPINGS[
197
  # "DownloadAndLoadCogVideoModel"
198
  # ]()
199
- # downloadandloadcogvideomodel_1 = downloadandloadcogvideomodel.loadmodel(
200
- # model="THUDM/CogVideoX-5b",
201
- # precision="bf16",
202
- # quantization="disabled",
203
- # enable_sequential_cpu_offload=True,
204
- # attention_mode="sdpa",
205
- # load_device="main_device",
206
- # )
207
 
208
  # loadimage = NODE_CLASS_MAPPINGS["LoadImage"]()
209
  loadimage_8 = loadimage.load_image(image=input_image)
 
145
  downloadandloadcogvideomodel = NODE_CLASS_MAPPINGS[
146
  "DownloadAndLoadCogVideoModel"
147
  ]()
148
+ # downloadandloadcogvideomodel_1 = downloadandloadcogvideomodel.loadmodel(
149
+ # model="THUDM/CogVideoX-5b",
150
+ # precision="bf16",
151
+ # quantization="disabled",
152
+ # enable_sequential_cpu_offload=True,
153
+ # attention_mode="sdpa",
154
+ # load_device="main_device",
155
+ # )
156
  loadimage = NODE_CLASS_MAPPINGS["LoadImage"]()
157
  cliploader = NODE_CLASS_MAPPINGS["CLIPLoader"]()
158
  cliploader_20 = cliploader.load_clip(
 
170
  vhs_videocombine = NODE_CLASS_MAPPINGS["VHS_VideoCombine"]()
171
 
172
  #Add all the models that load a safetensors file
173
+ model_loaders = [cliploader_20]
174
+ # model_loaders = [downloadandloadcogvideomodel_1, cliploader_20]
175
 
176
  # Check which models are valid and how to best load them
177
  valid_models = [
 
197
  # downloadandloadcogvideomodel = NODE_CLASS_MAPPINGS[
198
  # "DownloadAndLoadCogVideoModel"
199
  # ]()
200
+ downloadandloadcogvideomodel_1 = downloadandloadcogvideomodel.loadmodel(
201
+ model="THUDM/CogVideoX-5b",
202
+ precision="bf16",
203
+ quantization="disabled",
204
+ enable_sequential_cpu_offload=True,
205
+ attention_mode="sdpa",
206
+ load_device="main_device",
207
+ )
208
 
209
  # loadimage = NODE_CLASS_MAPPINGS["LoadImage"]()
210
  loadimage_8 = loadimage.load_image(image=input_image)