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

How to calculate SSIM #6

Closed
syf0518 opened this issue Jul 7, 2023 · 2 comments
Closed

How to calculate SSIM #6

syf0518 opened this issue Jul 7, 2023 · 2 comments

Comments

@syf0518
Copy link

syf0518 commented Jul 7, 2023

Thanks for your contribution, it is wonderful.I wanted to use your code as a comparison algorithm for CT reconstruction, but I found that only PSNR but no SSIM was calculated in the code.I see PSNR is calculated by "eval_psnr = self.evaluator.eval(self.actor, step)", but I don't know how to calculate SSIM by using "self.actor" and "step".I would appreciate it if you could tell me.

@Vandermode
Copy link
Owner

Hey, thanks for your interest. If you just care about the evaluation. Perhaps you just simply save the results and compare the SSIM offline.

@syf0518
Copy link
Author

syf0518 commented Jul 8, 2023

Hey, thanks for your interest. If you just care about the evaluation. Perhaps you just simply save the results and compare the SSIM offline.

That's a good idea, thank you for your reply.I have another question.I want to calculate the number of parameters for the TFPnP, so I wrote a function:
图片
Can I use it by "print_network(trainer)" in main.py?I would appreciate it if you could tell me.

@syf0518 syf0518 closed this as completed Oct 9, 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

No branches or pull requests

2 participants