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

How to extract Unet, text Encoders, and VAE separately from a safetensor file? #9

Open
magekinnarus opened this issue Dec 15, 2024 · 1 comment

Comments

@magekinnarus
Copy link

I am not quite sure if this can be done with the codes you wrote. If it is possible, could you provide some instructions on how to proceed? Thanks.

@by321
Copy link
Owner

by321 commented Feb 26, 2025

You can use the "extractdata" command to save individual tensors to binary files. You'd need to know which tensors are unet, text encoders, etc.

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

No branches or pull requests

2 participants