Skip to content
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

Add PhaseShift Transform #1714

Merged
merged 10 commits into from
Nov 7, 2024
Merged

Conversation

pearguacamole
Copy link
Contributor

closes #1659

Modified file(s)

  • lightly/transforms/__init__.py: Added new transform imports for phase shift transform
  • .gitignore: Added .venv to ignored packages

Created file(s)

  • lightly/transforms/phase_shift_transform.py
  • tests/transforms/test_phase_shift_transform.py

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.93%. Comparing base (2155ebb) to head (4b293ea).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1714      +/-   ##
==========================================
+ Coverage   84.88%   84.93%   +0.05%     
==========================================
  Files         157      158       +1     
  Lines        6543     6567      +24     
==========================================
+ Hits         5554     5578      +24     
  Misses        989      989              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@guarin guarin left a comment

Choose a reason for hiding this comment

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

This looks great, thanks so much for the PR!

I have one concern regarding the dimension of theta.

Could you also upload some examples of transformed images? Then it is easier to verify that the implementation is correct. The images should look like this according to the paper:
Screenshot 2024-11-01 at 09 00 28

Copy link
Contributor

@guarin guarin left a comment

Choose a reason for hiding this comment

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

Thanks for the update! The results look great.

I left some feedback regarding the sign of theta and docstring formatting. Everything else looks good 👍🏼

Copy link
Contributor

@guarin guarin left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks a lot for the contribution!

@guarin guarin enabled auto-merge (squash) November 7, 2024 09:08
@guarin guarin merged commit fd29f1d into lightly-ai:master Nov 7, 2024
12 checks passed
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.

Add PhaseShift transform
2 participants