Skip to content

[#10076] Adds conversion script from diffusers to cogvideox #10449

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KaranpreetRaja
Copy link

What does this PR do?

This PR adds a conversion script convert_diffusers_to_cogvideox.py that enables converting models from the Diffusers format back to the original CogVideoX format. This complements the existing convert_cogvideox_to_diffusers.py script, allowing for bidirectional conversion between the two formats.

The script provides functionality to:

  • Convert Transformer models from Diffusers to CogVideoX format
  • Convert VAE models from Diffusers to CogVideoX format
  • Support both Image-to-Video and regular CogVideoX models
  • Handle different model versions (1.0 and 1.5)
  • Support FP16, BF16, and FP32 precision

Fixes #10076

Before submitting

Copy link
Contributor

github-actions bot commented Feb 3, 2025

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot added the stale Issues that haven't received updates label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issues that haven't received updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do we have any script covert from hf format to orginal format?
1 participant