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

A parameter needs to be specified in unit 1 - 01_introduction_to_diffusers.ipynb #92

Open
wzhings opened this issue Dec 21, 2024 · 0 comments

Comments

@wzhings
Copy link

wzhings commented Dec 21, 2024

In this notebook, originally there is a line of code:
image_pipe.save_pretrained("my_pipeline")
, which will generate a saved model as 'diffusion_pytorch_model.safetensors'. However, it will cause errors in the following line
pipeline = DDPMPipeline.from_pretrained(hub_model_id)

After investigation, we have to specify one more parameter when saving model as follows,
image_pipe.save_pretrained("my_pipeline", safe_serialization=False)

Then, it should be work when loading our own trained model.

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

1 participant