Datasets:

Formats:
json
ArXiv:
DOI:
License:
Kyliroco commited on
Commit
c7d5aa7
·
verified ·
1 Parent(s): ed87b0d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -0
README.md CHANGED
@@ -18,6 +18,10 @@ Only header-extracted quantization matrices are provided.
18
 
19
  - arXiv: https://arxiv.org/abs/2605.19688
20
 
 
 
 
 
21
  ## Citation
22
 
23
  If you use DocQT, this quantization-table repository, or build upon our article, please cite our paper:
@@ -55,6 +59,31 @@ In other words, each file follows this structure:
55
  - list[table]
56
  - table = list[64 integer values]
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  ## Example: use quantization tables with Pillow JPEG compression
59
 
60
  ```python
 
18
 
19
  - arXiv: https://arxiv.org/abs/2605.19688
20
 
21
+ ## Hugging Face Dataset
22
+
23
+ - Dataset on Hugging Face Hub: https://huggingface.co/datasets/Kyliroco/DocQT
24
+
25
  ## Citation
26
 
27
  If you use DocQT, this quantization-table repository, or build upon our article, please cite our paper:
 
59
  - list[table]
60
  - table = list[64 integer values]
61
 
62
+ ## Example: load DocQT from Hugging Face Hub
63
+
64
+ ```python
65
+ from datasets import load_dataset
66
+
67
+
68
+ def load_docqt_from_hub() -> tuple[list[list[int]], list[list[int]]]:
69
+ dataset = load_dataset("Kyliroco/DocQT")
70
+
71
+ luminance_split = dataset["luminance"]
72
+ chrominance_split = dataset["chrominance"]
73
+
74
+ # The 64-value quantization tables are stored in the "text" column.
75
+ luminance_tables = luminance_split["text"]
76
+ chrominance_tables = chrominance_split["text"]
77
+
78
+ return luminance_tables, chrominance_tables
79
+
80
+
81
+ luminance_tables, chrominance_tables = load_docqt_from_hub()
82
+ ```
83
+
84
+ Each selected table must be a flat list of 64 integer values before passing
85
+ it to Pillow through `qtables`.
86
+
87
  ## Example: use quantization tables with Pillow JPEG compression
88
 
89
  ```python