- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6.5k
[qwen] Qwen image edit followups #12166
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
Conversation
| video_freq = self.rope_cache[rope_key] | ||
| else: | ||
| video_freq = self._compute_video_freqs(frame, height, width, idx) | ||
| video_freq = video_freq.to(device) | 
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.
Without this, the test_to_device test fails:
| def test_to_device(self): | 
| calculated_width, calculated_height, _ = calculate_dimensions(1024 * 1024, image.width / image.height) | ||
| image_size = image[0].size if isinstance(image, list) else image.size | ||
| width, height = image_size | ||
| calculated_width, calculated_height, _ = calculate_dimensions(1024 * 1024, width / height) | 
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.
Otherwise, test_inference_batch_consistent fails.
| 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. | 
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.
Changes look good to me but let's wait for Qwen team to review as well before merge :)
| def prepare_dummy_input(self, height, width): | ||
| return QwenImageTransformerTests().prepare_dummy_input(height=height, width=width) | ||
|  | ||
| @pytest.mark.xfail(condition=True, reason="RoPE needs to be revisited.", strict=True) | 
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.
Makes sense since RoPE refactor changes have been reverted
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.
Hi @sayakpaul, thank you for your support. The changes look good to me.
What does this PR do?
For Qwen Image Edit:
Some inline comments.
Cc: @naykun as well. Could you review?