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

Compression fails for large quantization values #148

Open
lindstro opened this issue Jun 24, 2022 · 1 comment
Open

Compression fails for large quantization values #148

lindstro opened this issue Jun 24, 2022 · 1 comment

Comments

@lindstro
Copy link

Sperr has difficulties compressing certain data sets when the quantization level is high. For instance, using the Nyx temperature field from SDRBench, the following fails:

compressor_3d --dims 512 512 512 -q 20 -t 1e30 -o /tmp/temperature.sperr temperature.bof
Compression failed!

The same command works when reducing the quantization level to 19.

To avoid such failures, can you provide any guidance on allowable quantization levels? For instance, are they directly correlated with the data range?

@shaomeng
Copy link
Collaborator

Hi @lindstro , you might be running an older version; I've actually provided a more informative message in this case: Compression failed because q is set too big! Also, if you run the command line program without specifying -t 1e30, it will not attempt any outlier correction.

It's directly correlated to the range of the resulting wavelet coefficients, and is probably loosely correlated to the input data range.

This will not be a problem in the near future I imagine. I'm currently developing a mechanism to automatically select q based on the amount of error quantization introduces. (Because of the near-orthogonal nature of CDF wavelets, error in coefficients is close to error in input data.) I'll share more results when I have the implementation ready.

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