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

Fix warning in UNetMotionModel #8756

Merged
merged 3 commits into from
Jul 2, 2024
Merged

Fix warning in UNetMotionModel #8756

merged 3 commits into from
Jul 2, 2024

Conversation

DN6
Copy link
Collaborator

@DN6 DN6 commented Jul 1, 2024

What does this PR do?

The UNetMotionModel is initialized from the pretrained UNet2DConditionModel config. Many of the parameters supported by the 2D UNet are not present in the UNetMotionModel which can result in fairly long warning messages that are not really actionable, since these parameters cannot be removed from the original 2D UNet's config.

This PR filters out the unnecessary parameters from the config dict before creating the UNetMotionModel so that these warnings are not raised.

Fixes # (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@DN6 DN6 requested a review from yiyixuxu July 1, 2024 13:31
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Collaborator

@yiyixuxu yiyixuxu left a comment

Choose a reason for hiding this comment

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

thanks!

@DN6 DN6 merged commit c104482 into main Jul 2, 2024
18 checks passed
sayakpaul pushed a commit that referenced this pull request Dec 23, 2024
* update

* Update src/diffusers/models/unets/unet_motion_model.py

Co-authored-by: YiYi Xu <[email protected]>

---------

Co-authored-by: YiYi Xu <[email protected]>
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