-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support loading and using SkyReels-V1-Hunyuan-I2V (#6862)
* Support SkyReels-V1-Hunyuan-I2V * VAE scaling * Fix T2V oops * Proper latent scaling
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acc152b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems some hunyuanvideo models do not have img_in.proj.weight in their state_dict and this is causing a load failure for them. After this batch is done I'll try to reproduce.
hmm, it does seem to have it. I need to look at the error again...
"model.model.img_in.proj.weight": {
"dtype": "F8_E4M3",
"shape": [3072, 16, 1, 2, 2],
"data_offsets": [8617924974, 8618121582]
},
This is the error I am seeing:
02:06:44.479 [Debug] [ComfyUI-0/STDERR] !!! Exception during processing !!! 'img_in.proj.weight'
02:06:44.482 [Warning] [ComfyUI-0/STDERR] Traceback (most recent call last):
02:06:44.484 [Warning] [ComfyUI-0/STDERR] File "G:___all_webuis\SwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 327, in execute
02:06:44.485 [Warning] [ComfyUI-0/STDERR] output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
02:06:44.487 [Warning] [ComfyUI-0/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:06:44.488 [Warning] [ComfyUI-0/STDERR] File "G:___all_webuis\SwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 202, in get_output_data
02:06:44.490 [Warning] [ComfyUI-0/STDERR] return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
02:06:44.492 [Warning] [ComfyUI-0/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:06:44.494 [Warning] [ComfyUI-0/STDERR] File "G:___all_webuis\SwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 174, in _map_node_over_list
02:06:44.496 [Warning] [ComfyUI-0/STDERR] process_inputs(input_dict, i)
02:06:44.498 [Warning] [ComfyUI-0/STDERR] File "G:___all_webuis\SwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 163, in process_inputs
02:06:44.499 [Warning] [ComfyUI-0/STDERR] results.append(getattr(obj, func)(**inputs))
02:06:44.501 [Warning] [ComfyUI-0/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:06:44.503 [Warning] [ComfyUI-0/STDERR] File "G:___all_webuis\SwarmUI\dlbackend\comfy\ComfyUI\nodes.py", line 570, in load_checkpoint
02:06:44.504 [Warning] [ComfyUI-0/STDERR] out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings"))
02:06:44.505 [Warning] [ComfyUI-0/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:06:44.507 [Warning] [ComfyUI-0/STDERR] File "G:___all_webuis\SwarmUI\dlbackend\comfy\ComfyUI\comfy\sd.py", line 858, in load_checkpoint_guess_config
02:06:44.508 [Warning] [ComfyUI-0/STDERR] out = load_state_dict_guess_config(sd, output_vae, output_clip, output_clipvision, embedding_directory, output_model, model_options, te_model_options=te_model_options)
02:06:44.509 [Warning] [ComfyUI-0/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:06:44.510 [Warning] [ComfyUI-0/STDERR] File "G:___all_webuis\SwarmUI\dlbackend\comfy\ComfyUI\comfy\sd.py", line 875, in load_state_dict_guess_config
02:06:44.511 [Warning] [ComfyUI-0/STDERR] model_config = model_detection.model_config_from_unet(sd, diffusion_model_prefix)
02:06:44.514 [Warning] [ComfyUI-0/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:06:44.515 [Warning] [ComfyUI-0/STDERR] File "G:___all_webuis\SwarmUI\dlbackend\comfy\ComfyUI\comfy\model_detection.py", line 437, in model_config_from_unet
02:06:44.517 [Warning] [ComfyUI-0/STDERR] unet_config = detect_unet_config(state_dict, unet_key_prefix)
02:06:44.519 [Warning] [ComfyUI-0/STDERR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:06:44.521 [Warning] [ComfyUI-0/STDERR] File "G:___all_webuis\SwarmUI\dlbackend\comfy\ComfyUI\comfy\model_detection.py", line 139, in detect_unet_config
02:06:44.524 [Warning] [ComfyUI-0/STDERR] dit_config["in_channels"] = state_dict["img_in.proj.weight"].shape[1] #SkyReels img2video has 32 input channels
02:06:44.526 [Warning] [ComfyUI-0/STDERR] ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
02:06:44.529 [Warning] [ComfyUI-0/STDERR] KeyError: 'img_in.proj.weight'
02:06:44.530 [Warning] [ComfyUI-0/STDERR]
acc152b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brendanhoar : This issue should be addressed by #6877, if you want to try that in the meantime.
acc152b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm sorry about that, out of curiosity which model is that? All the models I had worked so I didn't catch that in my initial testing.