-
Notifications
You must be signed in to change notification settings - Fork 29
reformat control params and pipeline utils #128
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,6 @@ | ||||||||||||||||||||||||||||||||||
| def accumulate(result, new_item): | ||||||||||||||||||||||||||||||||||
| if result is None: | ||||||||||||||||||||||||||||||||||
| return new_item | ||||||||||||||||||||||||||||||||||
| for i, item in enumerate(new_item): | ||||||||||||||||||||||||||||||||||
| result[i] += item | ||||||||||||||||||||||||||||||||||
| return result | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+6
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To improve code clarity and maintainability, please add type hints to the
Suggested change
|
||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,9 +1,8 @@ | ||||||||||
| import unittest | ||||||||||
|
|
||||||||||
| from tests.common.test_case import ImageTestCase | ||||||||||
| from diffsynth_engine.configs import FluxPipelineConfig | ||||||||||
| from diffsynth_engine.configs import FluxPipelineConfig, ControlType, ControlNetParams | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To improve readability and adhere to PEP 8 style for line length, please wrap this long import statement using parentheses.
Suggested change
|
||||||||||
| from diffsynth_engine.pipelines import FluxImagePipeline | ||||||||||
| from diffsynth_engine.pipelines.flux_image import ControlType, ControlNetParams | ||||||||||
| from diffsynth_engine.processor.canny_processor import CannyProcessor | ||||||||||
| from diffsynth_engine.processor.depth_processor import DepthProcessor | ||||||||||
|
|
||||||||||
|
|
||||||||||
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.
To improve readability and adhere to PEP 8 guidelines for line length, it's recommended to wrap this long import statement using parentheses.