-
Notifications
You must be signed in to change notification settings - Fork 200
update neo++ seed #1032
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
update neo++ seed #1032
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,8 +14,14 @@ | |
| from diffusers.utils import deprecate | ||
| from einops import rearrange | ||
| from loguru import logger | ||
| from scipy.interpolate import interp1d | ||
| from scipy.spatial.transform import Rotation, Slerp | ||
|
|
||
| try: | ||
| from scipy.interpolate import interp1d | ||
| from scipy.spatial.transform import Rotation, Slerp | ||
| except ImportError: | ||
| interp1d = None | ||
| Rotation = None | ||
| Slerp = None | ||
|
Comment on lines
+18
to
+24
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. Wrapping these imports in a |
||
|
|
||
| from lightx2v.models.runners.wan.wan_runner import Wan22DenseRunner, build_wan_model_with_lora | ||
| from lightx2v.models.schedulers.scheduler import BaseScheduler | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -460,7 +460,8 @@ def generate( | |||||||||||
| self.modify_config({"task": self.task}) | ||||||||||||
|
|
||||||||||||
| input_info = init_empty_input_info(self.task, self.support_tasks) | ||||||||||||
| seed_all(self.seed) | ||||||||||||
| if self.seed is not None: | ||||||||||||
| seed_all(self.seed) | ||||||||||||
|
Comment on lines
+463
to
+464
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. Setting
Suggested change
|
||||||||||||
| update_input_info_from_dict(input_info, self) | ||||||||||||
| gen_result = self.runner.run_pipeline(input_info) | ||||||||||||
| logger.info("Generated successfully!") | ||||||||||||
|
|
||||||||||||
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.
Hardcoding absolute paths that include personal user directories (e.g.,
/yongyang/kkk/) makes the example less portable and harder for others to use. Consider using relative paths or environment variables for output directories.