Skip to content

Conversation

@sayakpaul
Copy link
Member

What does this PR do?

For Qwen Image Edit:

  • Tests
  • Docs

Some inline comments.

Cc: @naykun as well. Could you review?

video_freq = self.rope_cache[rope_key]
else:
video_freq = self._compute_video_freqs(frame, height, width, idx)
video_freq = video_freq.to(device)
Copy link
Member Author

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):

Comment on lines -638 to +645
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)
Copy link
Member Author

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.

@HuggingFaceDocBuilderDev

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.

Copy link
Contributor

@a-r-r-o-w a-r-r-o-w left a 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)
Copy link
Contributor

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

Copy link
Contributor

@naykun naykun left a 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.

@sayakpaul sayakpaul merged commit 4d9b822 into main Aug 18, 2025
15 checks passed
@sayakpaul sayakpaul deleted the qwen-image-edit-followups branch August 18, 2025 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants