Skip to content

Conversation

arkajyotimitra
Copy link
Contributor

Tested locally (skipping slow runs), faced some assertion errors due to model changes.

What does this PR do?

Fixes #5262

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.

…size with increased attention heads and intermediate size
@arkajyotimitra
Copy link
Contributor Author

@DN6 Kindly review and awaiting your feedback. Thank you!

@arkajyotimitra
Copy link
Contributor Author

I thought assertion errors were inevitable since the parametric change will influence those values.....do i need to consider changing the assertion checks such as ''np.abs(image_slice.flatten() - expected_slice).max() < 1e-2'' into the range that is acceptable?
How do I fix the code quality checks? never done this before...thank you for your patience!

@patrickvonplaten patrickvonplaten requested a review from DN6 October 13, 2023 14:16
image_slice = image[0, -3:, -3:, -1]

assert image.shape == (1, 64, 64, 3)
expected_slice = np.array([0.4873, 0.5443, 0.4845, 0.5004, 0.5549, 0.4850, 0.5191, 0.4941, 0.5065])
Copy link
Contributor

Choose a reason for hiding this comment

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

We will have to update the expected values here cc @DN6 can you help?

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Collaborator

@DN6 DN6 left a comment

Choose a reason for hiding this comment

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

Nice!

@DN6 DN6 merged commit ad8068e into huggingface:main Oct 17, 2023
@arkajyotimitra
Copy link
Contributor Author

Thank you all!

@arkajyotimitra arkajyotimitra deleted the fresh-fix branch October 17, 2023 23:32
mhetrerajat pushed a commit to mhetrerajat/diffusers that referenced this pull request Oct 23, 2023
…rs of CLIPText (huggingface#5370)

* changed channel parameters for UNET and VAE. Decreased hidden layers size with increased attention heads and intermediate size

* changed the assertion check range

* clean up

---------

Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com>
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…rs of CLIPText (huggingface#5370)

* changed channel parameters for UNET and VAE. Decreased hidden layers size with increased attention heads and intermediate size

* changed the assertion check range

* clean up

---------

Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com>
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.

[HacktoberFest] make fast test for StableDiffusionPipeline smaller when applicable
4 participants