-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Docs] Improve docs #1870
[Docs] Improve docs #1870
Conversation
@@ -30,11 +30,6 @@ Any pipeline object can be saved locally with [`~DiffusionPipeline.save_pretrain | |||
|
|||
## DiffusionPipeline | |||
[[autodoc]] DiffusionPipeline | |||
- from_pretrained |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yiyixuxu @williamberman @patil-suraj @pcuenca @anton-l Let's make sure to never add any methods here actually because it means that only those methods are shown. If we don't add any methods, we simply show all public methods by default which is much better IMO.
The documentation is not available anymore as the PR was closed or merged. |
## StableDiffusionImg2ImgPipeline | ||
[[autodoc]] StableDiffusionImg2ImgPipeline | ||
- all | ||
- __call__ | ||
- enable_attention_slicing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exceptionally I'm duplicating all those enable_attention_slicing
from DiffusionPipeline
here since this doc page is viewed a lot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* add a doc page for each pipeline under api/pipelines/stable_diffusion * add pipeline examples to docstrings * updated stable_diffusion_2 page * updated default markdown syntax to list methods based on #1870 * add function decorator Co-authored-by: yiyixuxu <yixu@Yis-MacBook-Pro.lan> Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* add a doc page for each pipeline under api/pipelines/stable_diffusion * add pipeline examples to docstrings * updated stable_diffusion_2 page * updated default markdown syntax to list methods based on huggingface#1870 * add function decorator Co-authored-by: yiyixuxu <yixu@Yis-MacBook-Pro.lan> Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Make sure docs always show all methods.
Here some very nice documentation of how the
doc-builder
behaves: https://github.com/huggingface/doc-builder#writing-api-documentationSee differences between:
Using:
is important to not "suppress" other methods. So by default, we should just always use: