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

ModuleNotFoundError: No module named 'image_similarity_measures' #65

Open
grapemaidaa opened this issue Mar 13, 2024 · 2 comments
Open

Comments

@grapemaidaa
Copy link

When I run the code, it fails. 'image_similarity_measures' is a folder name,what should I do?

@seedlit
Copy link
Contributor

seedlit commented Mar 13, 2024

Hi @grapemaidaa thanks for raising the issue.
Can you share minimalist code to reproduce the issue?

@grapemaidaa
Copy link
Author

Hi @seedlit Thanks for your reply.
I have solved this problem but there is another problem.Can this code only calculate the metric between two pictures? I want to calculate SSIM & PSNR of pictures in two folders.Then what should I do?
Besides, what does the format of "metrics" look like when running in the command line?

python evaluate.py --org_img_path "/media/grapemaid/本地磁盘/grapemaidaaaaa/SSMI&PSNR/real/1.png" --pred_img_path "/media/grapemaid/本地磁盘/grapemaidaaaaa/SSMI&PSNR/generated/1.png" --metrics ["ssim","psnr"]
usage: evaluate.py [-h] --org_img_path FILE --pred_img_path FILE [--metric METRIC]
evaluate.py: error: unrecognized arguments: --metrics [ssim,psnr]

If I do not add "--metrics ["ssim","psnr"]" in the command line, It works. And it calculates the "psnr" between the two pictures.

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

No branches or pull requests

2 participants