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 deal with quantization operation during training DCVC-TCM? #68

Open
SYSU-HQH opened this issue Nov 2, 2024 · 0 comments
Open

Comments

@SYSU-HQH
Copy link

SYSU-HQH commented Nov 2, 2024

Thanks for sharing your great works!
I ran DCVC-TCM with the released weight without update them, and added noise sampled from a uniform distribution to test the performance of the released weight using the training set(Vimeo-90K) mentioned in the paper, like this:

def quant(self, x):
if self.training:
return x + torch.nn.init.uniform_(torch.zeros_like(x), -0.5, 0.5)
else:
return torch.round(x)

However, I found the loss of adding uniform noise(0.295bpp with 39.335psnr) is quite larger than using round operation(0.112bpp with 42.291psnr).
Is this a normal phenomenon? Or did I use the wrong quantization processing method?

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

1 participant