-
Notifications
You must be signed in to change notification settings - Fork 4
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
Implemented new features: first issue and second issue #5
Conversation
…e home.html file, always preserving the previous functionalities
Deleted classifications_histogram.py because the portion of code I needed now is inside classifications.py Modified home.html to have another 'here' button for the new functionality to implement
… the plotted image in the created imagenet_histogram directory
…make more fancy the web interface )
… verify every routes work correctly
…code. Transformed images are saved in a new folder
…t, putting default value to 1.0 to all enhancement's factors
First issue
Second issue
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.
The code looks good. The only thing left is removing some comments in two of the files. Also, I would suggest that you improve the documentation of the pull request itself. You can add the links to the issues of the original repository to clarify what you are solving ("first and second issue" is not much informative). As soon as these things are fixed, the assignment will be considered done.
test_historgram.py
Outdated
|
||
|
||
img_one_ch = 'app/static/imagenet_subset/n01443537_goldfish.JPEG' | ||
# print(img_one_ch) |
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.
I think these are leftover comments that can be removed. @davide-scintu Can you fix this?
test_historgram.py
Outdated
# print(type(img_one_ch)) | ||
plot_histogram(img_one_ch) | ||
|
||
# img_rgb = 'app/static/imagenet_subset/n01443537_goldfish.JPEG' |
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.
same here 🔍
trans_test.py
Outdated
"""IMAGE TRANSFORMATIONS""" | ||
|
||
"""Open and image and show it""" | ||
# im = Image.open('app/static/imagenet_subset/n01443537_goldfish.JPEG') |
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.
cleanup comments in this file as well please
First Issue Pull
Second Issue Pull
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.
OK, now it looks good.
👍
Well done!
As discussed, I will not merge this pull request to the main branch of the original repository, as it would cause merge conflicts with the other students working individually on the same project.
Changelog
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Image Histogram
This feature allows a user to choose an image from the dataset, saving it and have its histogram shown compared to its original feedback image.
Image Transformation
This feature allows a user to choose an image from the dataset and choose a value from -10.0 to +10.0 (with 0.1 step) to pass to enhancements factors to modify it. The result shows the difference between the output image and the original one.
Old functionalities preserved
Other information:(does the pr fix some issues? Tag them with #)
Closed first issue : Image Histogram #1
Closed second issue : Image transformation #2