Skip to content

refactor: pipelines readability improvements #622

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

Merged
merged 2 commits into from
Sep 23, 2022

Conversation

ryanrussell
Copy link
Contributor

Signed-off-by: Ryan Russell git@ryanrussell.org

Description

readability cleanup -- including var renaming -- in src/diffusers/pipelines/stable_diffusion/

More details

offsensive -> offensive
Pytorhc -> Pytorch
safety_cheker_input -> safety_checker_input
concet_idx -> concept_idx

Notes

I was able to go through your venv setup and run make style and make quality (nothing recommended), but still am not 100% sure this will match your CI runner yet. I've been having problems matching my machines black/isort lint with your make script(versions), hopefully there are no linting issues here or moving forward.

-r

Signed-off-by: Ryan Russell <git@ryanrussell.org>
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 23, 2022

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

Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks a lot!

@@ -149,7 +149,7 @@ def __call__(
uncond_embeddings = self.text_encoder(uncond_input.input_ids, params=params["text_encoder"])[0]
context = jnp.concatenate([uncond_embeddings, text_embeddings])

# TODO: check it because the shape is different from Pytorhc StableDiffusionPipeline
# TODO: check it because the shape is different from Pytorch StableDiffusionPipeline
Copy link
Member

Choose a reason for hiding this comment

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

Actually I think we can remove this comment now. @patil-suraj

Signed-off-by: Ryan Russell <git@ryanrussell.org>
@pcuenca pcuenca merged commit ce31f83 into huggingface:main Sep 23, 2022
@ryanrussell ryanrussell deleted the pipelines-sd-readability branch September 23, 2022 13:36
prathikr pushed a commit to prathikr/diffusers that referenced this pull request Oct 26, 2022
* refactor: pipelines readability improvements

Signed-off-by: Ryan Russell <git@ryanrussell.org>

* docs: remove todo comment from flax pipeline

Signed-off-by: Ryan Russell <git@ryanrussell.org>

Signed-off-by: Ryan Russell <git@ryanrussell.org>
PhaneeshB pushed a commit to nod-ai/diffusers that referenced this pull request Mar 1, 2023
…arily remove multiprocessing and TF gpu support. (huggingface#602)" (huggingface#622)

This reverts commit fe61881.
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* refactor: pipelines readability improvements

Signed-off-by: Ryan Russell <git@ryanrussell.org>

* docs: remove todo comment from flax pipeline

Signed-off-by: Ryan Russell <git@ryanrussell.org>

Signed-off-by: Ryan Russell <git@ryanrussell.org>
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