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

[advanced dreambooth lora sdxl training script] load pipeline for inference only if validation prompt is used #6171

Merged
merged 4 commits into from
Dec 14, 2023

Conversation

linoytsaban
Copy link
Collaborator

This pr changes the final pipeline loading for inference to be inside the if block, to save memory when validation_prompt is not provided
cc @apolinario

@linoytsaban linoytsaban marked this pull request as ready for review December 14, 2023 17:10
@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.

@apolinario apolinario merged commit 29dfe22 into huggingface:main Dec 14, 2023
14 checks passed
donhardman pushed a commit to donhardman/diffusers that referenced this pull request Dec 18, 2023
…erence only if validation prompt is used (huggingface#6171)

* load pipeline for inference only if validation prompt is used

* move things outside

* load pipeline for inference only if validation prompt is used

* fix readme when validation prompt is used

---------

Co-authored-by: linoytsaban <[email protected]>
Co-authored-by: apolinário <[email protected]>
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…erence only if validation prompt is used (huggingface#6171)

* load pipeline for inference only if validation prompt is used

* move things outside

* load pipeline for inference only if validation prompt is used

* fix readme when validation prompt is used

---------

Co-authored-by: linoytsaban <[email protected]>
Co-authored-by: apolinário <[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