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

[question] How to load hific iamge directly? #22

Open
cczutang opened this issue Mar 2, 2021 · 1 comment
Open

[question] How to load hific iamge directly? #22

cczutang opened this issue Mar 2, 2021 · 1 comment

Comments

@cczutang
Copy link

cczutang commented Mar 2, 2021

Do we need a decoder to parse the hific image?

@Justin-Tan
Copy link
Owner

Yes, images are encoded in .hific format - to decode this back to an image you need to first:

  1. Decode the bitstream to the latent representation using a standard entropy (here we use ANS).
  2. Pass the latent representation through the NN decoder/generator - this is the bottleneck.

Using compress.py will do both for you automatically provided you pass in the right flags. Check the usage guide for more info about this.

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