jzyustc / MBRS

This is the source code of paper MBRS : Enhancing Robustness of DNN-based Watermarking by Mini-Batch of Real and Simulated JPEG Compression, which is received by ACM MM' 21.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An error in ssim?

yuningzhang2022 opened this issue · comments

There might be an error in train.py:
"TypeError: ssim() got an unexpected keyword argument 'reduction', (line 98, in train.py), ssim = 1 - 2 * kornia.losses.ssim(encoded_images.detach(), images, window_size=5, reduction="mean"). "
It seems that "ssim" should be "ssim_loss". Is it right?

Hi, the TypeError is caused by the different kornia version. It will be solved if you use kornia 0.3.0.

Thank you very much!