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

[DIP] Add initial documents for image equivalence testing. #65

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

taiqzheng
Copy link
Contributor

Add README.md for comfigure virtual environment.

After configure venv, please run the code below:

source EquivalenceTest.venv/bin/activate
python compareImg.py <PATH/TO/Image1> <PATH/TO/Image2>
deactivate

Copy link
Member

@meshtag meshtag 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 your work on this!
Just some minor comments and then this is LGTM :)

utils/README.md Outdated
```
$ pip install pillow
$ pip install numpy
$ pip install sys
Copy link
Member

Choose a reason for hiding this comment

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

Can you put this in a requirements.txt? Perhaps name it requirements-optional.txt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correted with pip install -r requirements.txt

img1_dim = len(np.array(img1).shape)
img2_dim = len(np.array(img2).shape)
if img1_dim != img2_dim:
print("Please provide images of the same type. Currently, one is a grayscale image and the other is a color image.")
Copy link
Member

Choose a reason for hiding this comment

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

It might not always be the case when the mismatched images are grayscale and color (one could be RGB while the other could be RGBA or any other no. of channels?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only the first sentence remained now. The RGB and RGBA or other channels is a problem, but im not sure what to write here.

EllisLambda pushed a commit to EllisLambda/buddy-benchmark that referenced this pull request Sep 21, 2023
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.

2 participants