Skip to content

Conversation

DN6
Copy link
Collaborator

@DN6 DN6 commented Aug 17, 2023

What does this PR do?

Changes the OnnxStableDiffusionUpscalePipeline in the following way

  1. Removes inheritance from the StableDiffusionUpscalePipeline and replaces it with inheritance from DiffusionPipeline so that it aligns with the Diffusers design philosophy
  2. Remove the use of torch tensors and torch based operations (generator, concatentation etc) in favour of numpy arrays and operations so that this pipeline is more in line with the design of the OnnxStableDiffusionImg2ImgPipeline and OnnxStableDiffusionPipeline`
  3. Update/cleanup tests for the Onnx Upscale Pipeline

Fixes # (issue)
#4440

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.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Aug 17, 2023

The documentation is not available anymore as the PR was closed or merged.

@patrickvonplaten
Copy link
Contributor

Is this ready for a review? :-)

@DN6 DN6 marked this pull request as ready for review August 23, 2023 06:36
@DN6
Copy link
Collaborator Author

DN6 commented Aug 23, 2023

@patrickvonplaten Ready to review

@DN6
Copy link
Collaborator Author

DN6 commented Aug 25, 2023

@patrickvonplaten Following up on this

Copy link
Contributor

@patrickvonplaten patrickvonplaten left a comment

Choose a reason for hiding this comment

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

Great! Feel free to merge :-)

@DN6 DN6 merged commit e3f3672 into main Aug 28, 2023
@DN6 DN6 deleted the fix/onnx-upscale branch August 28, 2023 15:44
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* initial commit to fix inheritance issue

* clean up sd onnx upscale

* clean up
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* initial commit to fix inheritance issue

* clean up sd onnx upscale

* clean up
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