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 modify this code to enable compression of 16Bit Images #32

Open
vivekgr92 opened this issue Dec 2, 2021 · 1 comment
Open

How to modify this code to enable compression of 16Bit Images #32

vivekgr92 opened this issue Dec 2, 2021 · 1 comment

Comments

@vivekgr92
Copy link

I am running into a seg fault error when I try to compress a 16 Bit Image. The problem is in Arithmetic Coding. Any help is appreciated

@fab-jul
Copy link
Owner

fab-jul commented Dec 3, 2021

That’s not gonna work, the model is trained for 8bit and thus produces probability distributions for that. You would need to:

  • change the model to predict a probability for 16bits,
  • retrain
    overall unlikely to work though, as with 16bit you have 65k values per subpixel, and this approach here won’t scale to that.

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