You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces support for Zoe-style distillation in the Qwen image model, adding new configuration files, inference scripts, and scheduler logic for linear time shifting and Zoe-aligned latent generation. Feedback focuses on improving the robustness of latent preparation by avoiding fragile dimension squeezing and enhancing portability by replacing hardcoded absolute paths in scripts and configuration files with relative paths or environment variables.
The reason will be displayed to describe this comment to others. Learn more.
Using squeeze(2) is fragile because it only removes the dimension if its size is exactly 1. If the temporal dimension t is greater than 1, this operation will do nothing, and the subsequent permute call will fail as it expects a 4D tensor but receives a 5D one. Since this is an image-specific latent preparation, it is safer to explicitly select the first frame to ensure the expected 4D shape [B, C*4, H//2, W//2].
The reason will be displayed to describe this comment to others. Learn more.
The path to the checkpoint is hardcoded to a specific absolute path (/data/nvme1/yongyang/...). This makes the configuration file non-portable and will cause failures in other environments. Consider using a relative path or a mechanism to resolve the model path dynamically.
The reason will be displayed to describe this comment to others. Learn more.
The path to the quantized checkpoint is hardcoded to a specific absolute path. This will cause the configuration to fail in any environment other than the one where it was created. Please use relative paths or environment variables.
The reason will be displayed to describe this comment to others. Learn more.
Hardcoded absolute paths for lightx2v_path and model_path limit the usability of this script across different systems. It is recommended to use relative paths or allow these paths to be passed as environment variables or command-line arguments.
The reason will be displayed to describe this comment to others. Learn more.
These absolute paths are specific to the author's environment. For better maintainability and sharing, consider using relative paths or environment variables.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.