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

add vae image processor #1219

Merged
merged 16 commits into from
Sep 5, 2023
Merged

add vae image processor #1219

merged 16 commits into from
Sep 5, 2023

Conversation

echarlaix
Copy link
Collaborator

@echarlaix echarlaix commented Jul 21, 2023

In this PR we add an VaeImageProcessor class enabling the preprocessing and postprocessing of images pipelines, in which we correctly reshape the inputs as expected by the ONNX model. The watermark is also made optional.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jul 21, 2023

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

@@ -29,6 +29,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install git+https://github.com/huggingface/diffusers
Copy link
Collaborator Author

@echarlaix echarlaix Sep 1, 2023

Choose a reason for hiding this comment

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

waiting for diffusers next release before we can merge
edit : now comaptible

@echarlaix echarlaix marked this pull request as ready for review September 1, 2023 16:07
Copy link
Contributor

@fxmarty fxmarty left a comment

Choose a reason for hiding this comment

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

LGTM

# additional invisible-watermark dependency for SD XL
from ..pipelines.diffusers.watermark import StableDiffusionXLWatermarker
if add_watermarker:
from ..pipelines.diffusers.watermark import StableDiffusionXLWatermarker
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this import be at the top of the file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No without making invisible-watermark a hard dependency, I added an additional verification in dd292d8 to check that invisible-watermark is installed if needed

@echarlaix echarlaix merged commit 3bac338 into main Sep 5, 2023
66 of 70 checks passed
@echarlaix echarlaix deleted the diffusers-img-processor branch September 5, 2023 08:50
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