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 PhotometricDistortion #485

Merged
merged 5 commits into from
Feb 24, 2021
Merged

add PhotometricDistortion #485

merged 5 commits into from
Feb 24, 2021

Conversation

jin-s13
Copy link
Collaborator

@jin-s13 jin-s13 commented Feb 22, 2021

No description provided.

@codecov
Copy link

codecov bot commented Feb 22, 2021

Codecov Report

Merging #485 (9e3685b) into master (8d6d85c) will increase coverage by 0.05%.
The diff coverage is 92.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #485      +/-   ##
==========================================
+ Coverage   80.99%   81.05%   +0.05%     
==========================================
  Files         138      138              
  Lines        9425     9474      +49     
  Branches     1510     1518       +8     
==========================================
+ Hits         7634     7679      +45     
- Misses       1448     1451       +3     
- Partials      343      344       +1     
Flag Coverage Δ
unittests 80.96% <80.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmpose/datasets/pipelines/shared_transform.py 86.07% <92.00%> (+2.58%) ⬆️
mmpose/core/post_processing/group.py 82.63% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d6d85c...99b97e1. Read the comment docs.



@PIPELINES.register_module()
class PhotoMetricDistortion(object):
Copy link
Contributor

Choose a reason for hiding this comment

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

PhotoMetric -> Photometric

It is derived from word photometry

Copy link
Contributor

Choose a reason for hiding this comment

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

btw (object)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually, PhotoMetricDistortion is copied from mmdet. Shall we keep the name the same?

Copy link
Contributor

Choose a reason for hiding this comment

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

no

Copy link
Contributor

Choose a reason for hiding this comment

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

We can raise an issue there~

Copy link
Contributor

Choose a reason for hiding this comment

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

cc. @yhcao6

@innerlee
Copy link
Contributor

Nevermind, let's consider optimization later.

5. random hue
6. convert color from HSV to BGR
7. random contrast (mode 1)
8. randomly swap channels
Copy link
Contributor

Choose a reason for hiding this comment

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

Step 8 is missing

Copy link
Contributor

Choose a reason for hiding this comment

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

cc. @yhcao6

@innerlee innerlee changed the title add PhotoMetricDistortion add PhotometricDistortion Feb 23, 2021
@innerlee innerlee merged commit a6ab476 into master Feb 24, 2021
@innerlee innerlee deleted the photo_metric_distortion branch February 24, 2021 06:56
shuheilocale pushed a commit to shuheilocale/mmpose that referenced this pull request May 6, 2023
* add PhotoMetricDistortion

* update saturation_hue

* remove (object)

* mv dice to call

* add random swap channels
HAOCHENYE pushed a commit to HAOCHENYE/mmpose that referenced this pull request Jun 27, 2023
ajgrafton pushed a commit to ajgrafton/mmpose that referenced this pull request Mar 6, 2024
* add PhotoMetricDistortion

* update saturation_hue

* remove (object)

* mv dice to call

* add random swap channels
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.

None yet

2 participants