-
Notifications
You must be signed in to change notification settings - Fork 6
Refactor image corruption toolbox #319
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
stock-plugins/aiverify.stock.image-corruption-toolbox/algorithms/blur_corruptions/README.md
Outdated
Show resolved
Hide resolved
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 Suresh, I tested the blur corruptions first. It runs fine but I think we need to refactor the directory of the output files and the display_info
field in output.json
as indicated in my comments. This should apply to the other algorithms as well.
stock-plugins/aiverify.stock.image-corruption-toolbox/algorithms/blur_corruptions/README.md
Outdated
Show resolved
Hide resolved
...stock.image-corruption-toolbox/algorithms/blur_corruptions/aiverify_blur_corruptions/algo.py
Outdated
Show resolved
Hide resolved
...stock.image-corruption-toolbox/algorithms/blur_corruptions/aiverify_blur_corruptions/algo.py
Show resolved
Hide resolved
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.
Tested aiverify_blur_corruptions
, aiverify_digital_corruptions
, aiverify_environment_corruptions
and aiverify_general_corruptions
using the example script provided in the readme. Fix testpath
to testpaths
and all should be good to go
stock-plugins/aiverify.stock.image-corruption-toolbox/algorithms/general_corruptions/pytest.ini
Outdated
Show resolved
Hide resolved
I get the following errors when running pytests under the environment_corruptions algo:
Please add instruction the readme to install imagemagick as requirement for this algo. User also need to export the MAGICK_HOME environment variable. |
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.
Approve
* refactoring blur-corruption - initial commit * refactored blur and digital image corruptions * refactoring image corruptions plugin * remving comments * updating the temp files path to output folder * updating the readme files * add relative path in results.json file * readme update * adding output folder to gitignore file * updating pytest.ini file * reviews addressed * updating test class name to ObjectTest --------- Co-authored-by: Suresh Kumar Kushal Raj <sureshjain@sureshs-MacBook-Pro.local>
Description
Type of Change
refactor: Code refactoring without changes in functionality
perf: Performance improvements
How to Test
Execute the below command for each plugin
Checklist
Please check all the boxes that apply to this pull request using "x":
Screenshots (if applicable)
[If the changes involve visual modifications, include screenshots or GIFs that demonstrate the changes.]
Additional Notes
[Add any additional information or context that might be relevant to reviewers.]
Developer Certificate of Origin