Skip to content

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

Open
KaranpreetRaja wants to merge 1 commit intohuggingface:mainfrom
KaranpreetRaja:add-convert-diffusers-to-cogvideox-issue-10076
Open

[#10076] Adds conversion script from diffusers to cogvideox#10449
KaranpreetRaja wants to merge 1 commit intohuggingface:mainfrom
KaranpreetRaja:add-convert-diffusers-to-cogvideox-issue-10076

Conversation

@KaranpreetRaja
Copy link
Copy Markdown

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

@github-actions
Copy link
Copy Markdown
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
@Yasserbhb
Copy link
Copy Markdown

@hlky @foreverpiano @KaranpreetRaja This PR has been inactive for a year. Would the team still be interested in this feature? I'd like to pick it up as my first contribution. would like to address any missing pieces and fixes .

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?

2 participants