Skip to content

Improve typehints and docs in diffusers/models#5312

Merged
patrickvonplaten merged 10 commits intohuggingface:mainfrom
a-r-r-o-w:improve-typehints-and-docs-2
Oct 11, 2023
Merged

Improve typehints and docs in diffusers/models#5312
patrickvonplaten merged 10 commits intohuggingface:mainfrom
a-r-r-o-w:improve-typehints-and-docs-2

Conversation

@a-r-r-o-w
Copy link
Copy Markdown
Contributor

@a-r-r-o-w a-r-r-o-w commented Oct 6, 2023

What does this PR do?

Fixes #5249.

Improves type hints and docs in the following files:

Before submitting

@DN6 @yiyixuxu

@DN6 DN6 requested review from sayakpaul and williamberman October 9, 2023 09:23
@DN6
Copy link
Copy Markdown
Collaborator

DN6 commented Oct 9, 2023

cc @williamberman @sayakpaul could you take a look here please.

Comment thread src/diffusers/models/adapter.py Outdated
Comment thread src/diffusers/models/adapter.py Outdated
Comment thread src/diffusers/models/adapter.py Outdated
Comment thread src/diffusers/models/adapter.py Outdated
Copy link
Copy Markdown
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Thanks so much! It's indeed massive.

a-r-r-o-w and others added 5 commits October 9, 2023 21:05
…r.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
…r.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
…r.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
…r.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
Comment thread src/diffusers/models/lora.py Outdated
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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

@patrickvonplaten
Copy link
Copy Markdown
Contributor

Great work @a-r-r-o-w !

@patrickvonplaten patrickvonplaten merged commit 91fd181 into huggingface:main Oct 11, 2023
@a-r-r-o-w a-r-r-o-w deleted the improve-typehints-and-docs-2 branch November 7, 2023 11:40
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* improvement: add missing typehints and docs to diffusers/models/attention.py

* chore: convert doc strings to raw python strings

add missing typehints

* improvement: add missing typehints and docs to diffusers/models/adapter.py

* improvement: add missing typehints and docs to diffusers/models/lora.py

* docs: include suggestion by @sayakpaul in src/diffusers/models/adapter.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>

* docs: include suggestion by @sayakpaul in src/diffusers/models/adapter.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>

* docs: include suggestion by @sayakpaul in src/diffusers/models/adapter.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>

* docs: include suggestion by @sayakpaul in src/diffusers/models/adapter.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>

* Update src/diffusers/models/lora.py

---------

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* improvement: add missing typehints and docs to diffusers/models/attention.py

* chore: convert doc strings to raw python strings

add missing typehints

* improvement: add missing typehints and docs to diffusers/models/adapter.py

* improvement: add missing typehints and docs to diffusers/models/lora.py

* docs: include suggestion by @sayakpaul in src/diffusers/models/adapter.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>

* docs: include suggestion by @sayakpaul in src/diffusers/models/adapter.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>

* docs: include suggestion by @sayakpaul in src/diffusers/models/adapter.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>

* docs: include suggestion by @sayakpaul in src/diffusers/models/adapter.py

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>

* Update src/diffusers/models/lora.py

---------

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
Co-authored-by: Patrick von Platen <patrick.v.platen@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.

Missing docs in multiple diffusers/models files

5 participants