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

Add support for lossy mode #13

Merged
merged 18 commits into from
Mar 25, 2024
Merged

Add support for lossy mode #13

merged 18 commits into from
Mar 25, 2024

Conversation

martaiborra
Copy link
Contributor

@martaiborra martaiborra commented Mar 14, 2024

This PR adds support for a lossy mode in Btune. To use it, blosc2-grok will have to be installed in the system. Furthermore it can only be used when compressing images which datatype are integers.
The way this mode works internally is by a combination of neural network and heuristic results.

Because we cannot compute on the fly the quality loss, the has_improved function and score function will only take into account the ratio and speed tradeoffs and the compressed bytes and compression time or decompression time.

Copy link
Member

@FrancescAlted FrancescAlted left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks pretty good so far. I have some comments that would be good to address before merging.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
examples/lossy.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@martaiborra martaiborra merged commit 94dbe2e into main Mar 25, 2024
3 of 4 checks passed
@martaiborra martaiborra deleted the 3tradeoff branch March 25, 2024 09:49
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

Successfully merging this pull request may close these issues.

2 participants