-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Improve docstrings and type hints in scheduling_ddim.py #12622
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
base: main
Are you sure you want to change the base?
Improve docstrings and type hints in scheduling_ddim.py #12622
Conversation
stevhliu
left a comment
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.
Thanks for improving!
aff1364 to
8ff3b89
Compare
|
Thanks for the review and the helpful suggestions. |
|
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. |
|
Can you run |
- Add complete type hints for all function parameters - Enhance docstrings to follow project conventions - Add missing parameter descriptions Fixes huggingface#9567
- Update parameter types and descriptions for clarity - Improve explanations in method docstrings to align with project standards - Add optional annotations for parameters where applicable
- Update parameter types to use Literal for specific string options - Enhance docstring descriptions for clarity and consistency - Ensure all parameters have appropriate type annotations and defaults
- Replace "prevent singularities" with "avoid numerical instability" for better clarity - Add backticks around `alpha_bar` variable name for consistent formatting - Convert Imagen Video paper URLs to Hugging Face papers references
01194cf to
e1c7acf
Compare
What does this PR do?
This PR improves the docstrings and type hints in
src/diffusers/schedulers/scheduling_ddim.pyto follow the project conventions as described in #9567.Changes made:
First commit: Initial improvements
Second commit: Further enhancements
Summary of improvements:
Context
This is part of a broader effort to improve documentation across all scheduler files in
src/diffusers/schedulers/. See issue #9567 for details.Testing
make stylemake qualityBefore submitting
Who can review?
cc @yiyixuxu @stevhliu @a-r-r-o-w for review