Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support loading and using SkyReels-V1-Hunyuan-I2V #6862

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

kijai
Copy link
Contributor

@kijai kijai commented Feb 18, 2025

https://huggingface.co/Skywork/SkyReels-V1-Hunyuan-I2V

Converted back to the original format from diffusers format, which didn't load natively:

https://huggingface.co/Kijai/SkyReels-V1-Hunyuan_comfy/blob/main/skyreels_hunyuan_i2v_bf16.safetensors

This finetune of HunyuanVideo has double the input channels for image2video, I did the minimum changes to allow loading and using it with the ip2p conditioning node, unsure if there should be additional node or not.

chrome_su2R9fvxjy.mp4

oops
if image is not None:
padding_shape = (noise.shape[0], 16, noise.shape[2] - 1, noise.shape[3], noise.shape[4])
latent_padding = torch.zeros(padding_shape, device=noise.device, dtype=noise.dtype)
image_latents = torch.cat([image.to(noise), latent_padding], dim=2) * 0.476986
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should do: self.process_latent_in(() instead of * 0.476986

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah thanks, I was wondering how to do that there.

@comfyanonymous comfyanonymous merged commit acc152b into comfyanonymous:master Feb 18, 2025
5 checks passed
@coinBIGTITS
Copy link

What settings should be set so that skyreels gives quality as stable mode on their site ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants