Skip to content

Conversation

@justincdavis
Copy link

Summary

Implements the Equalize transform for CV-CUDA backend using cvcuda.histogrameq

Testing

python3 -m pytest test/test_transforms_v2.py::TestEqualize

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 2, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9292

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 5 New Failures

As of commit 29f70f5 with merge base aa35ca1 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the cla signed label Dec 2, 2025
Copy link
Contributor

@zy1git zy1git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left one comment for the first round review. Feel free to let me know your thoughts.

Comment on lines +5509 to +5515
if is_cvcuda:
image = F.to_cvcuda_tensor(image)

actual = fn(image)

if is_cvcuda:
image = F.cvcuda_to_tensor(image)[0].cpu()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could combine the two if to one by writing:

if is_cvcuda:
      image = F.to_cvcuda_tensor(image)
      actual = fn(image)
      image = F.cvcuda_to_tensor(image)[0].cpu()
else:
      actual = fn(image)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants