Add dataset card, audit checklist, conversion script, and manifest
Browse files- DD_ASSET_COMPLETENESS_CHECKLIST.md +103 -0
- README.md +173 -0
- conversion_summary.json +1042 -0
- convert_assets.py +633 -0
- data/manifest/shards.parquet +3 -0
DD_ASSET_COMPLETENESS_CHECKLIST.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DD 资产完整性清单
|
| 2 |
+
|
| 3 |
+
- `synthetic_imagefolders.tar.gz`
|
| 4 |
+
- `other_pretrained_models.tar`
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
## 结论
|
| 8 |
+
|
| 9 |
+
- `synthetic_imagefolders.tar.gz`:13 个 DD 方法的内层压缩包都存在且均可完整读取,但方法 × 数据集 × IPC 覆盖不全。
|
| 10 |
+
- `other_pretrained_models.tar`:归档可读取,但没有包含当前 ResNet-based 配置所引用的全部 teacher checkpoint。
|
| 11 |
+
- 因此,仅依靠这两个归档不能完整运行当前项目的全部实验组合。
|
| 12 |
+
|
| 13 |
+
## 1. `synthetic_imagefolders.tar.gz`
|
| 14 |
+
|
| 15 |
+
### 1.1 内层方法包
|
| 16 |
+
|
| 17 |
+
- [x] DC
|
| 18 |
+
- [x] DM
|
| 19 |
+
- [x] DSA
|
| 20 |
+
- [x] ATT
|
| 21 |
+
- [x] MTT
|
| 22 |
+
- [x] TESLA
|
| 23 |
+
- [x] FreD
|
| 24 |
+
- [x] NCFM
|
| 25 |
+
- [x] CVDD
|
| 26 |
+
- [x] G-VBSM(归档目录名为 `GVBSM`)
|
| 27 |
+
- [x] SCDD
|
| 28 |
+
- [x] SRe²L(归档目录名为 `SRe2L`)
|
| 29 |
+
- [x] WMDD
|
| 30 |
+
|
| 31 |
+
### 1.2 数据集与 IPC 覆盖
|
| 32 |
+
|
| 33 |
+
单元格中的数字表示归档内实际存在的 IPC;`—` 表示没有该数据集。
|
| 34 |
+
|
| 35 |
+
| 家族 | 方法 | CIFAR-10 | CIFAR-100 | TinyImageNet200 | ImageNette | ImageNet-1K |
|
| 36 |
+
|---|---|---|---|---|---|---|
|
| 37 |
+
| ConvNet-based | DC | 1/10/50 | 1/10/50 | — | — | — |
|
| 38 |
+
| ConvNet-based | DM | 1/10/50 | 1/10/50 | — | — | — |
|
| 39 |
+
| ConvNet-based | DSA | 1/10/50 | 1/10/50 | — | — | — |
|
| 40 |
+
| ConvNet-based | ATT | 1/10/50 | 1/10/50 | 1/10/50 | 1/10 | — |
|
| 41 |
+
| ConvNet-based | MTT | 1/10/50 | 1/10/50 | 1/10/50 | 1/10 | — |
|
| 42 |
+
| ConvNet-based | TESLA | 1/10/50 | 1/10/50 | 1/10/50 | 1/10 | — |
|
| 43 |
+
| ConvNet-based | FreD | 1/10/50 | 1/10/50 | 1 | 1/10 | — |
|
| 44 |
+
| ConvNet-based | NCFM | 1/10/50 | 1/10/50 | 1/10/50 | 1/10/50 | — |
|
| 45 |
+
| ResNet-based | CVDD | 1/10/50 | 1/10/50 | 1/10/50 | 1/10/50 | 1/10/50 |
|
| 46 |
+
| ResNet-based | G-VBSM | 1/10/50 | 1/10/50 | 1/10/50 | — | 1/10/50 |
|
| 47 |
+
| ResNet-based | SCDD | 1/10/50 | 1/10/50 | — | — | — |
|
| 48 |
+
| ResNet-based | SRe²L | **—** | **—** | 1/10/50 | — | 1/10/50 |
|
| 49 |
+
| ResNet-based | WMDD | **—** | **—** | 1/10/50 | 10/50 | 1/10/50 |
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
## 2. `other_pretrained_models.tar`
|
| 53 |
+
|
| 54 |
+
### 2.1 当前 ResNet-based 配置的精确路径核对
|
| 55 |
+
|
| 56 |
+
| 使用方 | 数据集 | 当前配置引用 | 归档状态 |
|
| 57 |
+
|---|---|---|---|
|
| 58 |
+
| CVDD | CIFAR-10 | `other_pretrained_models/CVDD/cifar10/ResNet18.pth` | [x] 在 |
|
| 59 |
+
| CVDD | CIFAR-100 | `other_pretrained_models/CVDD/cifar100/ResNet18.pth` | [x] 在 |
|
| 60 |
+
| CVDD | TinyImageNet200 | `other_pretrained_models/GVBSM/tiny/ResNet18/squeeze_ResNet18.pth` | [ ] 缺失 |
|
| 61 |
+
| CVDD | ImageNet-1K | `offcial_resnet18`(运行时 torchvision 权重) | [ ] 归档中无文件 |
|
| 62 |
+
| G-VBSM | CIFAR-10 | `other_pretrained_models/GVBSM/CIFAR-10/ResNet18/squeeze_ResNet18.pth` | [x] 在 |
|
| 63 |
+
| G-VBSM | CIFAR-100 | `other_pretrained_models/GVBSM/CIFAR-100/ResNet18/squeeze_ResNet18.pth` | [x] 在 |
|
| 64 |
+
| G-VBSM | TinyImageNet200 | `other_pretrained_models/GVBSM/tiny/ResNet18/squeeze_ResNet18.pth` | [ ] 缺失 |
|
| 65 |
+
| G-VBSM | ImageNet-1K | `offcial_resnet18`(运行时 torchvision 权重) | [ ] 归档中无文件 |
|
| 66 |
+
| SCDD | CIFAR-10 | `other_pretrained_models/SRe2L/cifar10/ckpt.pth` | [ ] 缺失 |
|
| 67 |
+
| SCDD | CIFAR-100 | `other_pretrained_models/SRe2L/cifar100/ckpt.pth` | [ ] 缺失 |
|
| 68 |
+
| SCDD | ImageNet-1K | `offcial_resnet18`(运行时 torchvision 权重) | [ ] 归档中无文件 |
|
| 69 |
+
| SRe²L | CIFAR-10 | `other_pretrained_models/SRe2L/cifar10/ckpt.pth` | [ ] 缺失 |
|
| 70 |
+
| SRe²L | CIFAR-100 | `other_pretrained_models/SRe2L/cifar100/ckpt.pth` | [ ] 缺失 |
|
| 71 |
+
| SRe²L | ImageNet-1K | `offcial_resnet18`(运行时 torchvision 权重) | [ ] 归档中无文件 |
|
| 72 |
+
| WMDD | CIFAR-10 | `other_pretrained_models/SRe2L/cifar10/ckpt.pth` | [ ] 缺失 |
|
| 73 |
+
| WMDD | CIFAR-100 | `other_pretrained_models/SRe2L/cifar100/ckpt.pth` | [ ] 缺失 |
|
| 74 |
+
| WMDD | TinyImageNet200 | `other_pretrained_models/WMDD/tiny-imagenet_model_49.pth` | [x] 在 |
|
| 75 |
+
| WMDD | ImageNet-1K | `offcial_resnet18`(运行时 torchvision 权重) | [ ] 归档中无文件 |
|
| 76 |
+
|
| 77 |
+
补充:
|
| 78 |
+
|
| 79 |
+
- [x] `other_pretrained_models/WMDD/imagenette_model_49.pth` 存在,可对应 WMDD 的 ImageNette reproduction 配置。
|
| 80 |
+
- `offcial_resnet18` 是项目代码中的既有拼写;它不是归档路径,而是触发 torchvision 加载 ImageNet 预训练 ResNet-18。
|
| 81 |
+
|
| 82 |
+
### 2.2 唯一的关键缺失 checkpoint
|
| 83 |
+
|
| 84 |
+
以下 3 个唯一文件缺失,共影响当前 8 个 ResNet-based 配置:
|
| 85 |
+
|
| 86 |
+
- [ ] `other_pretrained_models/GVBSM/tiny/ResNet18/squeeze_ResNet18.pth`
|
| 87 |
+
- [ ] `other_pretrained_models/SRe2L/cifar10/ckpt.pth`
|
| 88 |
+
- [ ] `other_pretrained_models/SRe2L/cifar100/ckpt.pth`
|
| 89 |
+
|
| 90 |
+
另外,ImageNet-1K 的 official ResNet-18 权重不在该归档中:
|
| 91 |
+
|
| 92 |
+
- [ ] torchvision official ResNet-18 checkpoint
|
| 93 |
+
|
| 94 |
+
### 2.3 数量汇总
|
| 95 |
+
|
| 96 |
+
以当前 `tools/configs/tricks/` 中 18 个 ResNet-based 方法配置为口径:
|
| 97 |
+
|
| 98 |
+
- [x] 5 个配置的精确本地 teacher 路径能在归档中找到。
|
| 99 |
+
- [ ] 8 个配置引用了归档中缺失的本地 teacher 文件。
|
| 100 |
+
- [ ] 5 个 ImageNet-1K 配置依赖归档外的 torchvision official ResNet-18。
|
| 101 |
+
|
| 102 |
+
归档中标记为存在的关键 teacher 文件均为非空文件,并已完整读取其载荷;文件长度与 tar 元数据一致。
|
| 103 |
+
|
README.md
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: Dataset Distillation Collection
|
| 3 |
+
tags:
|
| 4 |
+
- dataset-distillation
|
| 5 |
+
- computer-vision
|
| 6 |
+
- parquet
|
| 7 |
+
configs:
|
| 8 |
+
- config_name: images
|
| 9 |
+
default: true
|
| 10 |
+
data_files:
|
| 11 |
+
- split: train
|
| 12 |
+
path: data/images/**/*.parquet
|
| 13 |
+
- config_name: teachers
|
| 14 |
+
data_files:
|
| 15 |
+
- split: train
|
| 16 |
+
path: data/teachers/*.parquet
|
| 17 |
+
- config_name: manifest
|
| 18 |
+
data_files:
|
| 19 |
+
- split: train
|
| 20 |
+
path: data/manifest/*.parquet
|
| 21 |
+
dataset_info:
|
| 22 |
+
- config_name: images
|
| 23 |
+
features:
|
| 24 |
+
- name: method
|
| 25 |
+
dtype: string
|
| 26 |
+
- name: dataset
|
| 27 |
+
dtype: string
|
| 28 |
+
- name: ipc
|
| 29 |
+
dtype: int32
|
| 30 |
+
- name: class_id
|
| 31 |
+
dtype: int32
|
| 32 |
+
- name: image_id
|
| 33 |
+
dtype: int32
|
| 34 |
+
- name: source_path
|
| 35 |
+
dtype: string
|
| 36 |
+
- name: extension
|
| 37 |
+
dtype: string
|
| 38 |
+
- name: image
|
| 39 |
+
dtype: image
|
| 40 |
+
- name: sample_weight
|
| 41 |
+
dtype: float64
|
| 42 |
+
- name: sha256
|
| 43 |
+
dtype: string
|
| 44 |
+
- name: byte_size
|
| 45 |
+
dtype: int64
|
| 46 |
+
- name: source_archive
|
| 47 |
+
dtype: string
|
| 48 |
+
splits:
|
| 49 |
+
- name: train
|
| 50 |
+
num_examples: 481090
|
| 51 |
+
- config_name: teachers
|
| 52 |
+
features:
|
| 53 |
+
- name: provider
|
| 54 |
+
dtype: string
|
| 55 |
+
- name: dataset
|
| 56 |
+
dtype: string
|
| 57 |
+
- name: architecture
|
| 58 |
+
dtype: string
|
| 59 |
+
- name: used_by
|
| 60 |
+
sequence: string
|
| 61 |
+
- name: source_path
|
| 62 |
+
dtype: string
|
| 63 |
+
- name: checkpoint
|
| 64 |
+
dtype: binary
|
| 65 |
+
- name: sha256
|
| 66 |
+
dtype: string
|
| 67 |
+
- name: byte_size
|
| 68 |
+
dtype: int64
|
| 69 |
+
- name: source_archive
|
| 70 |
+
dtype: string
|
| 71 |
+
splits:
|
| 72 |
+
- name: train
|
| 73 |
+
num_examples: 6
|
| 74 |
+
- config_name: manifest
|
| 75 |
+
features:
|
| 76 |
+
- name: asset_type
|
| 77 |
+
dtype: string
|
| 78 |
+
- name: relative_path
|
| 79 |
+
dtype: string
|
| 80 |
+
- name: method_or_provider
|
| 81 |
+
dtype: string
|
| 82 |
+
- name: row_count
|
| 83 |
+
dtype: int64
|
| 84 |
+
- name: payload_bytes
|
| 85 |
+
dtype: int64
|
| 86 |
+
- name: parquet_bytes
|
| 87 |
+
dtype: int64
|
| 88 |
+
- name: sha256
|
| 89 |
+
dtype: string
|
| 90 |
+
splits:
|
| 91 |
+
- name: train
|
| 92 |
+
num_examples: 26
|
| 93 |
+
---
|
| 94 |
+
|
| 95 |
+
# Dataset Distillation Collection
|
| 96 |
+
|
| 97 |
+
This repository is a byte-preserving Parquet conversion of the assets audited in:
|
| 98 |
+
|
| 99 |
+
- `synthetic_imagefolders.tar.gz`
|
| 100 |
+
- `other_pretrained_models.tar`
|
| 101 |
+
|
| 102 |
+
It contains 481,090 synthetic images from 13 dataset-distillation methods and six ResNet-18 teacher checkpoints that were physically present in the teacher archive. The original compressed image bytes and checkpoint bytes are stored directly in Parquet binary columns; no image re-encoding or checkpoint rewriting was performed.
|
| 103 |
+
|
| 104 |
+
## Configurations
|
| 105 |
+
|
| 106 |
+
### `images`
|
| 107 |
+
|
| 108 |
+
One row per physical image. Important columns:
|
| 109 |
+
|
| 110 |
+
- `method`, `dataset`, `ipc`, `class_id`, and `image_id` identify the experiment cell and sample.
|
| 111 |
+
- `image` is the Hugging Face image feature backed by the original JPEG/PNG bytes.
|
| 112 |
+
- `sample_weight` is populated for all 73,800 WMDD rows and null for other methods.
|
| 113 |
+
- `sha256` and `byte_size` validate the original compressed image payload.
|
| 114 |
+
- `source_path` and `source_archive` preserve provenance.
|
| 115 |
+
|
| 116 |
+
`ipc` is the nominal IPC recorded in the source folder. FreD and NCFM deliberately contain more physical images than `classes × ipc`; every physical image is retained.
|
| 117 |
+
|
| 118 |
+
### `teachers`
|
| 119 |
+
|
| 120 |
+
One row per teacher checkpoint. The `checkpoint` column contains the original `.pth` bytes. The six included checkpoints are:
|
| 121 |
+
|
| 122 |
+
- CVDD ResNet-18 for CIFAR-10 and CIFAR-100
|
| 123 |
+
- G-VBSM ResNet-18 for CIFAR-10 and CIFAR-100
|
| 124 |
+
- WMDD ResNet-18 for TinyImageNet-200 and ImageNette
|
| 125 |
+
|
| 126 |
+
The source archive did not contain the following required assets, so this repository does not fabricate or substitute them:
|
| 127 |
+
|
| 128 |
+
- `other_pretrained_models/GVBSM/tiny/ResNet18/squeeze_ResNet18.pth`
|
| 129 |
+
- `other_pretrained_models/SRe2L/cifar10/ckpt.pth`
|
| 130 |
+
- `other_pretrained_models/SRe2L/cifar100/ckpt.pth`
|
| 131 |
+
- torchvision's official ImageNet ResNet-18 checkpoint (a runtime dependency in the project)
|
| 132 |
+
|
| 133 |
+
### `manifest`
|
| 134 |
+
|
| 135 |
+
One row per uploaded image or teacher Parquet shard, including row counts, payload sizes, Parquet sizes, and SHA-256 digests.
|
| 136 |
+
|
| 137 |
+
## Usage
|
| 138 |
+
|
| 139 |
+
```python
|
| 140 |
+
from datasets import load_dataset
|
| 141 |
+
|
| 142 |
+
# Stream images without downloading the whole collection.
|
| 143 |
+
images = load_dataset(
|
| 144 |
+
"Passenger555/DatasetDistillationCollection",
|
| 145 |
+
"images",
|
| 146 |
+
split="train",
|
| 147 |
+
streaming=True,
|
| 148 |
+
)
|
| 149 |
+
first_image = next(iter(images))
|
| 150 |
+
|
| 151 |
+
# Restore a teacher checkpoint byte-for-byte.
|
| 152 |
+
teachers = load_dataset(
|
| 153 |
+
"Passenger555/DatasetDistillationCollection",
|
| 154 |
+
"teachers",
|
| 155 |
+
split="train",
|
| 156 |
+
streaming=True,
|
| 157 |
+
)
|
| 158 |
+
teacher = next(iter(teachers))
|
| 159 |
+
with open("teacher.pth", "wb") as handle:
|
| 160 |
+
handle.write(teacher["checkpoint"])
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
## Validation
|
| 164 |
+
|
| 165 |
+
The conversion was independently read back before upload. Validation covered all 481,090 image payloads and all six checkpoint payloads:
|
| 166 |
+
|
| 167 |
+
- recomputed SHA-256 matched every Parquet row;
|
| 168 |
+
- image row counts matched all 119 audited method/dataset/IPC groups;
|
| 169 |
+
- one image from each group decoded successfully;
|
| 170 |
+
- all WMDD sample weights were present and all non-WMDD weights were null;
|
| 171 |
+
- every shard matched the SHA-256 and file size recorded in the manifest.
|
| 172 |
+
|
| 173 |
+
See `DD_ASSET_COM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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"created_at_utc": "2026-09-15T10:44:36.818347+00:00",
|
| 3 |
+
"format": "byte-preserving Parquet",
|
| 4 |
+
"image_schema": "method: string not null\ndataset: string not null\nipc: int32 not null\nclass_id: int32 not null\nimage_id: int32 not null\nsource_path: string not null\nextension: string not null\nimage: struct<bytes: binary not null, path: string not null> not null\n child 0, bytes: binary not null\n child 1, path: string not null\nsample_weight: double\nsha256: string not null\nbyte_size: int64 not null\nsource_archive: string not null",
|
| 5 |
+
"teacher_schema": "provider: string not null\ndataset: string not null\narchitecture: string not null\nused_by: list<item: string> not null\n child 0, item: string\nsource_path: string not null\ncheckpoint: binary not null\nsha256: string not null\nbyte_size: int64 not null\nsource_archive: string not null",
|
| 6 |
+
"image_rows": 481090,
|
| 7 |
+
"image_payload_bytes": 5175494578,
|
| 8 |
+
"teacher_rows": 6,
|
| 9 |
+
"teacher_payload_bytes": 359292695,
|
| 10 |
+
"image_group_counts": [
|
| 11 |
+
{
|
| 12 |
+
"method": "ATT",
|
| 13 |
+
"dataset": "CIFAR-10",
|
| 14 |
+
"ipc": 1,
|
| 15 |
+
"rows": 10
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"method": "ATT",
|
| 19 |
+
"dataset": "CIFAR-10",
|
| 20 |
+
"ipc": 10,
|
| 21 |
+
"rows": 100
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"method": "ATT",
|
| 25 |
+
"dataset": "CIFAR-10",
|
| 26 |
+
"ipc": 50,
|
| 27 |
+
"rows": 500
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"method": "ATT",
|
| 31 |
+
"dataset": "CIFAR-100",
|
| 32 |
+
"ipc": 1,
|
| 33 |
+
"rows": 100
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"method": "ATT",
|
| 37 |
+
"dataset": "CIFAR-100",
|
| 38 |
+
"ipc": 10,
|
| 39 |
+
"rows": 1000
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"method": "ATT",
|
| 43 |
+
"dataset": "CIFAR-100",
|
| 44 |
+
"ipc": 50,
|
| 45 |
+
"rows": 5000
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"method": "ATT",
|
| 49 |
+
"dataset": "ImageNette",
|
| 50 |
+
"ipc": 1,
|
| 51 |
+
"rows": 10
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"method": "ATT",
|
| 55 |
+
"dataset": "ImageNette",
|
| 56 |
+
"ipc": 10,
|
| 57 |
+
"rows": 100
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"method": "ATT",
|
| 61 |
+
"dataset": "TinyImageNet-200",
|
| 62 |
+
"ipc": 1,
|
| 63 |
+
"rows": 200
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"method": "ATT",
|
| 67 |
+
"dataset": "TinyImageNet-200",
|
| 68 |
+
"ipc": 10,
|
| 69 |
+
"rows": 2000
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"method": "ATT",
|
| 73 |
+
"dataset": "TinyImageNet-200",
|
| 74 |
+
"ipc": 50,
|
| 75 |
+
"rows": 10000
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"method": "CVDD",
|
| 79 |
+
"dataset": "CIFAR-10",
|
| 80 |
+
"ipc": 1,
|
| 81 |
+
"rows": 10
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"method": "CVDD",
|
| 85 |
+
"dataset": "CIFAR-10",
|
| 86 |
+
"ipc": 10,
|
| 87 |
+
"rows": 100
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"method": "CVDD",
|
| 91 |
+
"dataset": "CIFAR-10",
|
| 92 |
+
"ipc": 50,
|
| 93 |
+
"rows": 500
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"method": "CVDD",
|
| 97 |
+
"dataset": "CIFAR-100",
|
| 98 |
+
"ipc": 1,
|
| 99 |
+
"rows": 100
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"method": "CVDD",
|
| 103 |
+
"dataset": "CIFAR-100",
|
| 104 |
+
"ipc": 10,
|
| 105 |
+
"rows": 1000
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"method": "CVDD",
|
| 109 |
+
"dataset": "CIFAR-100",
|
| 110 |
+
"ipc": 50,
|
| 111 |
+
"rows": 5000
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"method": "CVDD",
|
| 115 |
+
"dataset": "ImageNet-1K",
|
| 116 |
+
"ipc": 1,
|
| 117 |
+
"rows": 1000
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"method": "CVDD",
|
| 121 |
+
"dataset": "ImageNet-1K",
|
| 122 |
+
"ipc": 10,
|
| 123 |
+
"rows": 10000
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"method": "CVDD",
|
| 127 |
+
"dataset": "ImageNet-1K",
|
| 128 |
+
"ipc": 50,
|
| 129 |
+
"rows": 50000
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"method": "CVDD",
|
| 133 |
+
"dataset": "ImageNette",
|
| 134 |
+
"ipc": 1,
|
| 135 |
+
"rows": 10
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"method": "CVDD",
|
| 139 |
+
"dataset": "ImageNette",
|
| 140 |
+
"ipc": 10,
|
| 141 |
+
"rows": 100
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"method": "CVDD",
|
| 145 |
+
"dataset": "ImageNette",
|
| 146 |
+
"ipc": 50,
|
| 147 |
+
"rows": 500
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"method": "CVDD",
|
| 151 |
+
"dataset": "TinyImageNet-200",
|
| 152 |
+
"ipc": 1,
|
| 153 |
+
"rows": 200
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"method": "CVDD",
|
| 157 |
+
"dataset": "TinyImageNet-200",
|
| 158 |
+
"ipc": 10,
|
| 159 |
+
"rows": 2000
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"method": "CVDD",
|
| 163 |
+
"dataset": "TinyImageNet-200",
|
| 164 |
+
"ipc": 50,
|
| 165 |
+
"rows": 10000
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"method": "DC",
|
| 169 |
+
"dataset": "CIFAR-10",
|
| 170 |
+
"ipc": 1,
|
| 171 |
+
"rows": 10
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"method": "DC",
|
| 175 |
+
"dataset": "CIFAR-10",
|
| 176 |
+
"ipc": 10,
|
| 177 |
+
"rows": 100
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"method": "DC",
|
| 181 |
+
"dataset": "CIFAR-10",
|
| 182 |
+
"ipc": 50,
|
| 183 |
+
"rows": 500
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"method": "DC",
|
| 187 |
+
"dataset": "CIFAR-100",
|
| 188 |
+
"ipc": 1,
|
| 189 |
+
"rows": 100
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"method": "DC",
|
| 193 |
+
"dataset": "CIFAR-100",
|
| 194 |
+
"ipc": 10,
|
| 195 |
+
"rows": 1000
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"method": "DC",
|
| 199 |
+
"dataset": "CIFAR-100",
|
| 200 |
+
"ipc": 50,
|
| 201 |
+
"rows": 5000
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"method": "DM",
|
| 205 |
+
"dataset": "CIFAR-10",
|
| 206 |
+
"ipc": 1,
|
| 207 |
+
"rows": 10
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"method": "DM",
|
| 211 |
+
"dataset": "CIFAR-10",
|
| 212 |
+
"ipc": 10,
|
| 213 |
+
"rows": 100
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"method": "DM",
|
| 217 |
+
"dataset": "CIFAR-10",
|
| 218 |
+
"ipc": 50,
|
| 219 |
+
"rows": 500
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"method": "DM",
|
| 223 |
+
"dataset": "CIFAR-100",
|
| 224 |
+
"ipc": 1,
|
| 225 |
+
"rows": 100
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"method": "DM",
|
| 229 |
+
"dataset": "CIFAR-100",
|
| 230 |
+
"ipc": 10,
|
| 231 |
+
"rows": 1000
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"method": "DM",
|
| 235 |
+
"dataset": "CIFAR-100",
|
| 236 |
+
"ipc": 50,
|
| 237 |
+
"rows": 5000
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"method": "DSA",
|
| 241 |
+
"dataset": "CIFAR-10",
|
| 242 |
+
"ipc": 1,
|
| 243 |
+
"rows": 10
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"method": "DSA",
|
| 247 |
+
"dataset": "CIFAR-10",
|
| 248 |
+
"ipc": 10,
|
| 249 |
+
"rows": 100
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"method": "DSA",
|
| 253 |
+
"dataset": "CIFAR-10",
|
| 254 |
+
"ipc": 50,
|
| 255 |
+
"rows": 500
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"method": "DSA",
|
| 259 |
+
"dataset": "CIFAR-100",
|
| 260 |
+
"ipc": 1,
|
| 261 |
+
"rows": 100
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"method": "DSA",
|
| 265 |
+
"dataset": "CIFAR-100",
|
| 266 |
+
"ipc": 10,
|
| 267 |
+
"rows": 1000
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"method": "DSA",
|
| 271 |
+
"dataset": "CIFAR-100",
|
| 272 |
+
"ipc": 50,
|
| 273 |
+
"rows": 5000
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"method": "FreD",
|
| 277 |
+
"dataset": "CIFAR-10",
|
| 278 |
+
"ipc": 1,
|
| 279 |
+
"rows": 160
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"method": "FreD",
|
| 283 |
+
"dataset": "CIFAR-10",
|
| 284 |
+
"ipc": 10,
|
| 285 |
+
"rows": 640
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"method": "FreD",
|
| 289 |
+
"dataset": "CIFAR-10",
|
| 290 |
+
"ipc": 50,
|
| 291 |
+
"rows": 2000
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"method": "FreD",
|
| 295 |
+
"dataset": "CIFAR-100",
|
| 296 |
+
"ipc": 1,
|
| 297 |
+
"rows": 800
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"method": "FreD",
|
| 301 |
+
"dataset": "CIFAR-100",
|
| 302 |
+
"ipc": 10,
|
| 303 |
+
"rows": 1000
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"method": "FreD",
|
| 307 |
+
"dataset": "CIFAR-100",
|
| 308 |
+
"ipc": 50,
|
| 309 |
+
"rows": 5000
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"method": "FreD",
|
| 313 |
+
"dataset": "ImageNette",
|
| 314 |
+
"ipc": 1,
|
| 315 |
+
"rows": 80
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"method": "FreD",
|
| 319 |
+
"dataset": "ImageNette",
|
| 320 |
+
"ipc": 10,
|
| 321 |
+
"rows": 400
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"method": "FreD",
|
| 325 |
+
"dataset": "TinyImageNet-200",
|
| 326 |
+
"ipc": 1,
|
| 327 |
+
"rows": 1600
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"method": "GVBSM",
|
| 331 |
+
"dataset": "CIFAR-10",
|
| 332 |
+
"ipc": 1,
|
| 333 |
+
"rows": 10
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"method": "GVBSM",
|
| 337 |
+
"dataset": "CIFAR-10",
|
| 338 |
+
"ipc": 10,
|
| 339 |
+
"rows": 100
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"method": "GVBSM",
|
| 343 |
+
"dataset": "CIFAR-10",
|
| 344 |
+
"ipc": 50,
|
| 345 |
+
"rows": 500
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"method": "GVBSM",
|
| 349 |
+
"dataset": "CIFAR-100",
|
| 350 |
+
"ipc": 1,
|
| 351 |
+
"rows": 100
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"method": "GVBSM",
|
| 355 |
+
"dataset": "CIFAR-100",
|
| 356 |
+
"ipc": 10,
|
| 357 |
+
"rows": 1000
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"method": "GVBSM",
|
| 361 |
+
"dataset": "CIFAR-100",
|
| 362 |
+
"ipc": 50,
|
| 363 |
+
"rows": 5000
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"method": "GVBSM",
|
| 367 |
+
"dataset": "ImageNet-1K",
|
| 368 |
+
"ipc": 1,
|
| 369 |
+
"rows": 1000
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"method": "GVBSM",
|
| 373 |
+
"dataset": "ImageNet-1K",
|
| 374 |
+
"ipc": 10,
|
| 375 |
+
"rows": 10000
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"method": "GVBSM",
|
| 379 |
+
"dataset": "ImageNet-1K",
|
| 380 |
+
"ipc": 50,
|
| 381 |
+
"rows": 50000
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"method": "GVBSM",
|
| 385 |
+
"dataset": "TinyImageNet-200",
|
| 386 |
+
"ipc": 1,
|
| 387 |
+
"rows": 200
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"method": "GVBSM",
|
| 391 |
+
"dataset": "TinyImageNet-200",
|
| 392 |
+
"ipc": 10,
|
| 393 |
+
"rows": 2000
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"method": "GVBSM",
|
| 397 |
+
"dataset": "TinyImageNet-200",
|
| 398 |
+
"ipc": 50,
|
| 399 |
+
"rows": 10000
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"method": "MTT",
|
| 403 |
+
"dataset": "CIFAR-10",
|
| 404 |
+
"ipc": 1,
|
| 405 |
+
"rows": 10
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"method": "MTT",
|
| 409 |
+
"dataset": "CIFAR-10",
|
| 410 |
+
"ipc": 10,
|
| 411 |
+
"rows": 100
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"method": "MTT",
|
| 415 |
+
"dataset": "CIFAR-10",
|
| 416 |
+
"ipc": 50,
|
| 417 |
+
"rows": 500
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"method": "MTT",
|
| 421 |
+
"dataset": "CIFAR-100",
|
| 422 |
+
"ipc": 1,
|
| 423 |
+
"rows": 100
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"method": "MTT",
|
| 427 |
+
"dataset": "CIFAR-100",
|
| 428 |
+
"ipc": 10,
|
| 429 |
+
"rows": 1000
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"method": "MTT",
|
| 433 |
+
"dataset": "CIFAR-100",
|
| 434 |
+
"ipc": 50,
|
| 435 |
+
"rows": 5000
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"method": "MTT",
|
| 439 |
+
"dataset": "ImageNette",
|
| 440 |
+
"ipc": 1,
|
| 441 |
+
"rows": 10
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"method": "MTT",
|
| 445 |
+
"dataset": "ImageNette",
|
| 446 |
+
"ipc": 10,
|
| 447 |
+
"rows": 100
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"method": "MTT",
|
| 451 |
+
"dataset": "TinyImageNet-200",
|
| 452 |
+
"ipc": 1,
|
| 453 |
+
"rows": 200
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"method": "MTT",
|
| 457 |
+
"dataset": "TinyImageNet-200",
|
| 458 |
+
"ipc": 10,
|
| 459 |
+
"rows": 2000
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"method": "MTT",
|
| 463 |
+
"dataset": "TinyImageNet-200",
|
| 464 |
+
"ipc": 50,
|
| 465 |
+
"rows": 10000
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"method": "NCFM",
|
| 469 |
+
"dataset": "CIFAR-10",
|
| 470 |
+
"ipc": 1,
|
| 471 |
+
"rows": 40
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"method": "NCFM",
|
| 475 |
+
"dataset": "CIFAR-10",
|
| 476 |
+
"ipc": 10,
|
| 477 |
+
"rows": 400
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"method": "NCFM",
|
| 481 |
+
"dataset": "CIFAR-10",
|
| 482 |
+
"ipc": 50,
|
| 483 |
+
"rows": 2000
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"method": "NCFM",
|
| 487 |
+
"dataset": "CIFAR-100",
|
| 488 |
+
"ipc": 1,
|
| 489 |
+
"rows": 400
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"method": "NCFM",
|
| 493 |
+
"dataset": "CIFAR-100",
|
| 494 |
+
"ipc": 10,
|
| 495 |
+
"rows": 4000
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"method": "NCFM",
|
| 499 |
+
"dataset": "CIFAR-100",
|
| 500 |
+
"ipc": 50,
|
| 501 |
+
"rows": 20000
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"method": "NCFM",
|
| 505 |
+
"dataset": "ImageNette",
|
| 506 |
+
"ipc": 1,
|
| 507 |
+
"rows": 40
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"method": "NCFM",
|
| 511 |
+
"dataset": "ImageNette",
|
| 512 |
+
"ipc": 10,
|
| 513 |
+
"rows": 400
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"method": "NCFM",
|
| 517 |
+
"dataset": "ImageNette",
|
| 518 |
+
"ipc": 50,
|
| 519 |
+
"rows": 2000
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"method": "NCFM",
|
| 523 |
+
"dataset": "TinyImageNet-200",
|
| 524 |
+
"ipc": 1,
|
| 525 |
+
"rows": 800
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"method": "NCFM",
|
| 529 |
+
"dataset": "TinyImageNet-200",
|
| 530 |
+
"ipc": 10,
|
| 531 |
+
"rows": 8000
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"method": "NCFM",
|
| 535 |
+
"dataset": "TinyImageNet-200",
|
| 536 |
+
"ipc": 50,
|
| 537 |
+
"rows": 40000
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"method": "SCDD",
|
| 541 |
+
"dataset": "CIFAR-10",
|
| 542 |
+
"ipc": 1,
|
| 543 |
+
"rows": 10
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"method": "SCDD",
|
| 547 |
+
"dataset": "CIFAR-10",
|
| 548 |
+
"ipc": 10,
|
| 549 |
+
"rows": 100
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"method": "SCDD",
|
| 553 |
+
"dataset": "CIFAR-10",
|
| 554 |
+
"ipc": 50,
|
| 555 |
+
"rows": 500
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"method": "SCDD",
|
| 559 |
+
"dataset": "CIFAR-100",
|
| 560 |
+
"ipc": 1,
|
| 561 |
+
"rows": 100
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"method": "SCDD",
|
| 565 |
+
"dataset": "CIFAR-100",
|
| 566 |
+
"ipc": 10,
|
| 567 |
+
"rows": 1000
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"method": "SCDD",
|
| 571 |
+
"dataset": "CIFAR-100",
|
| 572 |
+
"ipc": 50,
|
| 573 |
+
"rows": 5000
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"method": "SRe2L",
|
| 577 |
+
"dataset": "ImageNet-1K",
|
| 578 |
+
"ipc": 1,
|
| 579 |
+
"rows": 1000
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"method": "SRe2L",
|
| 583 |
+
"dataset": "ImageNet-1K",
|
| 584 |
+
"ipc": 10,
|
| 585 |
+
"rows": 10000
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"method": "SRe2L",
|
| 589 |
+
"dataset": "ImageNet-1K",
|
| 590 |
+
"ipc": 50,
|
| 591 |
+
"rows": 50000
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"method": "SRe2L",
|
| 595 |
+
"dataset": "TinyImageNet-200",
|
| 596 |
+
"ipc": 1,
|
| 597 |
+
"rows": 200
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"method": "SRe2L",
|
| 601 |
+
"dataset": "TinyImageNet-200",
|
| 602 |
+
"ipc": 10,
|
| 603 |
+
"rows": 2000
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"method": "SRe2L",
|
| 607 |
+
"dataset": "TinyImageNet-200",
|
| 608 |
+
"ipc": 50,
|
| 609 |
+
"rows": 10000
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"method": "TESLA",
|
| 613 |
+
"dataset": "CIFAR-10",
|
| 614 |
+
"ipc": 1,
|
| 615 |
+
"rows": 10
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"method": "TESLA",
|
| 619 |
+
"dataset": "CIFAR-10",
|
| 620 |
+
"ipc": 10,
|
| 621 |
+
"rows": 100
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"method": "TESLA",
|
| 625 |
+
"dataset": "CIFAR-10",
|
| 626 |
+
"ipc": 50,
|
| 627 |
+
"rows": 500
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"method": "TESLA",
|
| 631 |
+
"dataset": "CIFAR-100",
|
| 632 |
+
"ipc": 1,
|
| 633 |
+
"rows": 100
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"method": "TESLA",
|
| 637 |
+
"dataset": "CIFAR-100",
|
| 638 |
+
"ipc": 10,
|
| 639 |
+
"rows": 1000
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"method": "TESLA",
|
| 643 |
+
"dataset": "CIFAR-100",
|
| 644 |
+
"ipc": 50,
|
| 645 |
+
"rows": 5000
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"method": "TESLA",
|
| 649 |
+
"dataset": "ImageNette",
|
| 650 |
+
"ipc": 1,
|
| 651 |
+
"rows": 10
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"method": "TESLA",
|
| 655 |
+
"dataset": "ImageNette",
|
| 656 |
+
"ipc": 10,
|
| 657 |
+
"rows": 100
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"method": "TESLA",
|
| 661 |
+
"dataset": "TinyImageNet-200",
|
| 662 |
+
"ipc": 1,
|
| 663 |
+
"rows": 200
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"method": "TESLA",
|
| 667 |
+
"dataset": "TinyImageNet-200",
|
| 668 |
+
"ipc": 10,
|
| 669 |
+
"rows": 2000
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"method": "TESLA",
|
| 673 |
+
"dataset": "TinyImageNet-200",
|
| 674 |
+
"ipc": 50,
|
| 675 |
+
"rows": 10000
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"method": "WMDD",
|
| 679 |
+
"dataset": "ImageNet-1K",
|
| 680 |
+
"ipc": 1,
|
| 681 |
+
"rows": 1000
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"method": "WMDD",
|
| 685 |
+
"dataset": "ImageNet-1K",
|
| 686 |
+
"ipc": 10,
|
| 687 |
+
"rows": 10000
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"method": "WMDD",
|
| 691 |
+
"dataset": "ImageNet-1K",
|
| 692 |
+
"ipc": 50,
|
| 693 |
+
"rows": 50000
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"method": "WMDD",
|
| 697 |
+
"dataset": "ImageNette",
|
| 698 |
+
"ipc": 10,
|
| 699 |
+
"rows": 100
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"method": "WMDD",
|
| 703 |
+
"dataset": "ImageNette",
|
| 704 |
+
"ipc": 50,
|
| 705 |
+
"rows": 500
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"method": "WMDD",
|
| 709 |
+
"dataset": "TinyImageNet-200",
|
| 710 |
+
"ipc": 1,
|
| 711 |
+
"rows": 200
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"method": "WMDD",
|
| 715 |
+
"dataset": "TinyImageNet-200",
|
| 716 |
+
"ipc": 10,
|
| 717 |
+
"rows": 2000
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"method": "WMDD",
|
| 721 |
+
"dataset": "TinyImageNet-200",
|
| 722 |
+
"ipc": 50,
|
| 723 |
+
"rows": 10000
|
| 724 |
+
}
|
| 725 |
+
],
|
| 726 |
+
"teachers_present": [
|
| 727 |
+
{
|
| 728 |
+
"provider": "CVDD",
|
| 729 |
+
"dataset": "CIFAR-10",
|
| 730 |
+
"architecture": "ResNet18",
|
| 731 |
+
"used_by": [
|
| 732 |
+
"CVDD"
|
| 733 |
+
],
|
| 734 |
+
"source_path": "other_pretrained_models/CVDD/cifar10/ResNet18.pth",
|
| 735 |
+
"sha256": "66a048c98d0601ad83e0ecdaf63ef27bc0082a56c1b53624314fb529ea28b6f7",
|
| 736 |
+
"byte_size": 44774524,
|
| 737 |
+
"source_archive": "other_pretrained_models.tar"
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"provider": "CVDD",
|
| 741 |
+
"dataset": "CIFAR-100",
|
| 742 |
+
"architecture": "ResNet18",
|
| 743 |
+
"used_by": [
|
| 744 |
+
"CVDD"
|
| 745 |
+
],
|
| 746 |
+
"source_path": "other_pretrained_models/CVDD/cifar100/ResNet18.pth",
|
| 747 |
+
"sha256": "5552a974472866a840b9b59f3af2226238de655fe9ab8a28d62db42d8a443249",
|
| 748 |
+
"byte_size": 44959228,
|
| 749 |
+
"source_archive": "other_pretrained_models.tar"
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"provider": "GVBSM",
|
| 753 |
+
"dataset": "CIFAR-10",
|
| 754 |
+
"architecture": "ResNet18",
|
| 755 |
+
"used_by": [
|
| 756 |
+
"GVBSM"
|
| 757 |
+
],
|
| 758 |
+
"source_path": "other_pretrained_models/GVBSM/CIFAR-10/ResNet18/squeeze_ResNet18.pth",
|
| 759 |
+
"sha256": "cf1769dca8a063c5e9dce66f7a622f92582035852c412d5539b7723f8166cc07",
|
| 760 |
+
"byte_size": 44775145,
|
| 761 |
+
"source_archive": "other_pretrained_models.tar"
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"provider": "GVBSM",
|
| 765 |
+
"dataset": "CIFAR-100",
|
| 766 |
+
"architecture": "ResNet18",
|
| 767 |
+
"used_by": [
|
| 768 |
+
"GVBSM"
|
| 769 |
+
],
|
| 770 |
+
"source_path": "other_pretrained_models/GVBSM/CIFAR-100/ResNet18/squeeze_ResNet18.pth",
|
| 771 |
+
"sha256": "078064217ad9c590589a9d6bd01d3aec3681bcd0c19266b2793994f7f4dc74d5",
|
| 772 |
+
"byte_size": 44960300,
|
| 773 |
+
"source_archive": "other_pretrained_models.tar"
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"provider": "WMDD",
|
| 777 |
+
"dataset": "TinyImageNet-200",
|
| 778 |
+
"architecture": "ResNet18",
|
| 779 |
+
"used_by": [
|
| 780 |
+
"WMDD"
|
| 781 |
+
],
|
| 782 |
+
"source_path": "other_pretrained_models/WMDD/tiny-imagenet_model_49.pth",
|
| 783 |
+
"sha256": "18f2eca0e6738f29718c7810823a408fba39c3e4a70fac2c091734ecddfb5755",
|
| 784 |
+
"byte_size": 90270731,
|
| 785 |
+
"source_archive": "other_pretrained_models.tar"
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"provider": "WMDD",
|
| 789 |
+
"dataset": "ImageNette",
|
| 790 |
+
"architecture": "ResNet18",
|
| 791 |
+
"used_by": [
|
| 792 |
+
"WMDD"
|
| 793 |
+
],
|
| 794 |
+
"source_path": "other_pretrained_models/WMDD/imagenette_model_49.pth",
|
| 795 |
+
"sha256": "9dab362ef2b5bd85f0ae43dea3316404eba83c5f25ea1f404978c0b0d0982634",
|
| 796 |
+
"byte_size": 89552767,
|
| 797 |
+
"source_archive": "other_pretrained_models.tar"
|
| 798 |
+
}
|
| 799 |
+
],
|
| 800 |
+
"teachers_missing_from_source_archives": [
|
| 801 |
+
"other_pretrained_models/GVBSM/tiny/ResNet18/squeeze_ResNet18.pth",
|
| 802 |
+
"other_pretrained_models/SRe2L/cifar10/ckpt.pth",
|
| 803 |
+
"other_pretrained_models/SRe2L/cifar100/ckpt.pth",
|
| 804 |
+
"torchvision official ResNet-18 checkpoint (runtime dependency)"
|
| 805 |
+
],
|
| 806 |
+
"shards": [
|
| 807 |
+
{
|
| 808 |
+
"asset_type": "image",
|
| 809 |
+
"relative_path": "data/images/ATT/train-00000.parquet",
|
| 810 |
+
"method_or_provider": "ATT",
|
| 811 |
+
"row_count": 19020,
|
| 812 |
+
"payload_bytes": 143450156,
|
| 813 |
+
"parquet_bytes": 144187670,
|
| 814 |
+
"sha256": "4d8ec682f6246c1904ea9ffd0d6b8b893e5561c4f3610606329a1166a1ec4ba5"
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"asset_type": "image",
|
| 818 |
+
"relative_path": "data/images/CVDD/train-00000.parquet",
|
| 819 |
+
"method_or_provider": "CVDD",
|
| 820 |
+
"row_count": 41422,
|
| 821 |
+
"payload_bytes": 471846325,
|
| 822 |
+
"parquet_bytes": 448884548,
|
| 823 |
+
"sha256": "9a5a12497cd5083818e15ec6d6c51fd215d881d6c0b9f642292ee88cbbf643da"
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"asset_type": "image",
|
| 827 |
+
"relative_path": "data/images/CVDD/train-00001.parquet",
|
| 828 |
+
"method_or_provider": "CVDD",
|
| 829 |
+
"row_count": 39098,
|
| 830 |
+
"payload_bytes": 390477930,
|
| 831 |
+
"parquet_bytes": 368743985,
|
| 832 |
+
"sha256": "efee8eadd62da3f03cd263124eaef6ee89e5eb8d2730a732be19d904c4a06a0d"
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"asset_type": "image",
|
| 836 |
+
"relative_path": "data/images/DC/train-00000.parquet",
|
| 837 |
+
"method_or_provider": "DC",
|
| 838 |
+
"row_count": 6710,
|
| 839 |
+
"payload_bytes": 19142510,
|
| 840 |
+
"parquet_bytes": 19358788,
|
| 841 |
+
"sha256": "97a54095a2e00e62782843b27fa6e585aad8b2577c8b94c3e26654f78e705609"
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"asset_type": "image",
|
| 845 |
+
"relative_path": "data/images/DM/train-00000.parquet",
|
| 846 |
+
"method_or_provider": "DM",
|
| 847 |
+
"row_count": 6710,
|
| 848 |
+
"payload_bytes": 16358180,
|
| 849 |
+
"parquet_bytes": 16455166,
|
| 850 |
+
"sha256": "64108a75645475c11d22712d1489da273db9d4cba53766c1ada7b08c077febcd"
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"asset_type": "image",
|
| 854 |
+
"relative_path": "data/images/DSA/train-00000.parquet",
|
| 855 |
+
"method_or_provider": "DSA",
|
| 856 |
+
"row_count": 6710,
|
| 857 |
+
"payload_bytes": 16896533,
|
| 858 |
+
"parquet_bytes": 16989162,
|
| 859 |
+
"sha256": "03df00831c952c35033ffab53bfe9c203d83c93368c33ae4827cbbaa300b34bc"
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"asset_type": "image",
|
| 863 |
+
"relative_path": "data/images/FreD/train-00000.parquet",
|
| 864 |
+
"method_or_provider": "FreD",
|
| 865 |
+
"row_count": 11680,
|
| 866 |
+
"payload_bytes": 53842603,
|
| 867 |
+
"parquet_bytes": 54055670,
|
| 868 |
+
"sha256": "4dd418c058b144836789c361e5d8b34685ded7fb8c938f69b1edfd1b1aa76336"
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"asset_type": "image",
|
| 872 |
+
"relative_path": "data/images/GVBSM/train-00000.parquet",
|
| 873 |
+
"method_or_provider": "GVBSM",
|
| 874 |
+
"row_count": 33007,
|
| 875 |
+
"payload_bytes": 471855842,
|
| 876 |
+
"parquet_bytes": 457709994,
|
| 877 |
+
"sha256": "e15dc16c845ed3854c25f4d8301b82e904fdaef1e39b428778943abdfa3fe891"
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"asset_type": "image",
|
| 881 |
+
"relative_path": "data/images/GVBSM/train-00001.parquet",
|
| 882 |
+
"method_or_provider": "GVBSM",
|
| 883 |
+
"row_count": 27366,
|
| 884 |
+
"payload_bytes": 471857746,
|
| 885 |
+
"parquet_bytes": 456948167,
|
| 886 |
+
"sha256": "1d601a22693b0cadbdaca76478a38a93e5d043eaf1937432317ad6c2010b9874"
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"asset_type": "image",
|
| 890 |
+
"relative_path": "data/images/GVBSM/train-00002.parquet",
|
| 891 |
+
"method_or_provider": "GVBSM",
|
| 892 |
+
"row_count": 19537,
|
| 893 |
+
"payload_bytes": 249211679,
|
| 894 |
+
"parquet_bytes": 245845521,
|
| 895 |
+
"sha256": "db7f1c0664ddd12c84ae3eb276de6499a1b9a9c7248a6638c7c9fe71a6a5f19b"
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"asset_type": "image",
|
| 899 |
+
"relative_path": "data/images/MTT/train-00000.parquet",
|
| 900 |
+
"method_or_provider": "MTT",
|
| 901 |
+
"row_count": 19020,
|
| 902 |
+
"payload_bytes": 142286162,
|
| 903 |
+
"parquet_bytes": 143014119,
|
| 904 |
+
"sha256": "2ef7c74d5efeefe9830938d94c1ad8c057d891a849825d80c9af5a71493e3e7d"
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"asset_type": "image",
|
| 908 |
+
"relative_path": "data/images/NCFM/train-00000.parquet",
|
| 909 |
+
"method_or_provider": "NCFM",
|
| 910 |
+
"row_count": 70535,
|
| 911 |
+
"payload_bytes": 471851561,
|
| 912 |
+
"parquet_bytes": 474299273,
|
| 913 |
+
"sha256": "1b00235ce8acafeaf2e62b11089417058ebfe548a15cea823504555c6acd89f0"
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"asset_type": "image",
|
| 917 |
+
"relative_path": "data/images/NCFM/train-00001.parquet",
|
| 918 |
+
"method_or_provider": "NCFM",
|
| 919 |
+
"row_count": 7545,
|
| 920 |
+
"payload_bytes": 63689314,
|
| 921 |
+
"parquet_bytes": 64057880,
|
| 922 |
+
"sha256": "b9985d85fdb3e273e85eae8c7aa8aca391e2dbf1655ed4bdb2cabff5a2270070"
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"asset_type": "image",
|
| 926 |
+
"relative_path": "data/images/SCDD/train-00000.parquet",
|
| 927 |
+
"method_or_provider": "SCDD",
|
| 928 |
+
"row_count": 6710,
|
| 929 |
+
"payload_bytes": 6621146,
|
| 930 |
+
"parquet_bytes": 2745229,
|
| 931 |
+
"sha256": "13985e2f585167c093153885e5e3805d7b02707352f65f926084c3bee209f71c"
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"asset_type": "image",
|
| 935 |
+
"relative_path": "data/images/SRe2L/train-00000.parquet",
|
| 936 |
+
"method_or_provider": "SRe2L",
|
| 937 |
+
"row_count": 34222,
|
| 938 |
+
"payload_bytes": 471852649,
|
| 939 |
+
"parquet_bytes": 453065586,
|
| 940 |
+
"sha256": "66551601cd07bc68fe34e2ed666048c665a44d582592ac66793f25e1a17a4d5f"
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"asset_type": "image",
|
| 944 |
+
"relative_path": "data/images/SRe2L/train-00001.parquet",
|
| 945 |
+
"method_or_provider": "SRe2L",
|
| 946 |
+
"row_count": 38978,
|
| 947 |
+
"payload_bytes": 395288099,
|
| 948 |
+
"parquet_bytes": 373629020,
|
| 949 |
+
"sha256": "4bd9dade77da4e03bb7286b53ed5d926609d4f2eacad1dc29d8d77dbd73ee081"
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"asset_type": "image",
|
| 953 |
+
"relative_path": "data/images/TESLA/train-00000.parquet",
|
| 954 |
+
"method_or_provider": "TESLA",
|
| 955 |
+
"row_count": 19020,
|
| 956 |
+
"payload_bytes": 134559924,
|
| 957 |
+
"parquet_bytes": 135270981,
|
| 958 |
+
"sha256": "8ae7f3e06a153e26c35f93ac0fab85ee9ecafea998b34bef208b04ffcae96010"
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"asset_type": "image",
|
| 962 |
+
"relative_path": "data/images/WMDD/train-00000.parquet",
|
| 963 |
+
"method_or_provider": "WMDD",
|
| 964 |
+
"row_count": 30714,
|
| 965 |
+
"payload_bytes": 471840741,
|
| 966 |
+
"parquet_bytes": 454879577,
|
| 967 |
+
"sha256": "0826ba776b879a4c4d39615db4a6956dbb6b36a70a25607af006ae90e1f82c56"
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"asset_type": "image",
|
| 971 |
+
"relative_path": "data/images/WMDD/train-00001.parquet",
|
| 972 |
+
"method_or_provider": "WMDD",
|
| 973 |
+
"row_count": 28424,
|
| 974 |
+
"payload_bytes": 471841579,
|
| 975 |
+
"parquet_bytes": 456341996,
|
| 976 |
+
"sha256": "9fc15d9fe4e33431eac96f4d769e79786119f3b4a77648479f017b089cf5c007"
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"asset_type": "image",
|
| 980 |
+
"relative_path": "data/images/WMDD/train-00002.parquet",
|
| 981 |
+
"method_or_provider": "WMDD",
|
| 982 |
+
"row_count": 14662,
|
| 983 |
+
"payload_bytes": 240723899,
|
| 984 |
+
"parquet_bytes": 232726403,
|
| 985 |
+
"sha256": "57f35513a1eea6eb0b70c63662c54a8b4ccc6b856097a91055d97689999c1223"
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"asset_type": "teacher",
|
| 989 |
+
"relative_path": "data/teachers/wmdd-tinyimagenet-200-resnet18.parquet",
|
| 990 |
+
"method_or_provider": "WMDD",
|
| 991 |
+
"row_count": 1,
|
| 992 |
+
"payload_bytes": 90270731,
|
| 993 |
+
"parquet_bytes": 83614972,
|
| 994 |
+
"sha256": "7d7c715e118ced55d59dbb2bf69ab176f1ec6606324d368aa835470b1202ac98"
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"asset_type": "teacher",
|
| 998 |
+
"relative_path": "data/teachers/wmdd-imagenette-resnet18.parquet",
|
| 999 |
+
"method_or_provider": "WMDD",
|
| 1000 |
+
"row_count": 1,
|
| 1001 |
+
"payload_bytes": 89552767,
|
| 1002 |
+
"parquet_bytes": 82873021,
|
| 1003 |
+
"sha256": "b3c599d2fd589fca8924997cbce6525dfc41f769de7e0055dd3dcba10081550f"
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"asset_type": "teacher",
|
| 1007 |
+
"relative_path": "data/teachers/gvbsm-cifar-10-resnet18.parquet",
|
| 1008 |
+
"method_or_provider": "GVBSM",
|
| 1009 |
+
"row_count": 1,
|
| 1010 |
+
"payload_bytes": 44775145,
|
| 1011 |
+
"parquet_bytes": 41478988,
|
| 1012 |
+
"sha256": "e22d98dbee1de036d04e4400591b4c7af11877d9acb83d68b482463255da8f99"
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"asset_type": "teacher",
|
| 1016 |
+
"relative_path": "data/teachers/gvbsm-cifar-100-resnet18.parquet",
|
| 1017 |
+
"method_or_provider": "GVBSM",
|
| 1018 |
+
"row_count": 1,
|
| 1019 |
+
"payload_bytes": 44960300,
|
| 1020 |
+
"parquet_bytes": 41594776,
|
| 1021 |
+
"sha256": "e5bc9cc418a3bd7d644e022600deeb663b892fb0931fad9d1e0cae8855f623f7"
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"asset_type": "teacher",
|
| 1025 |
+
"relative_path": "data/teachers/cvdd-cifar-100-resnet18.parquet",
|
| 1026 |
+
"method_or_provider": "CVDD",
|
| 1027 |
+
"row_count": 1,
|
| 1028 |
+
"payload_bytes": 44959228,
|
| 1029 |
+
"parquet_bytes": 41902811,
|
| 1030 |
+
"sha256": "82b49f7472d7127ac4d3e957d60fcd915454b0e4a9c138e4b9f8abe4a76aa89f"
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"asset_type": "teacher",
|
| 1034 |
+
"relative_path": "data/teachers/cvdd-cifar-10-resnet18.parquet",
|
| 1035 |
+
"method_or_provider": "CVDD",
|
| 1036 |
+
"row_count": 1,
|
| 1037 |
+
"payload_bytes": 44774524,
|
| 1038 |
+
"parquet_bytes": 28640044,
|
| 1039 |
+
"sha256": "3e010e7e3867545871a4afd6632b96f4e9ea1566ee37c40af95e82a031376d22"
|
| 1040 |
+
}
|
| 1041 |
+
]
|
| 1042 |
+
}
|
convert_assets.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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Convert DataDistillBed image folders and selected ResNet teachers to Parquet.
|
| 3 |
+
|
| 4 |
+
The conversion is byte-preserving: compressed image bytes and checkpoint bytes are
|
| 5 |
+
stored directly in binary Parquet columns. The script validates the exact physical
|
| 6 |
+
image counts found during the archive audit and records SHA-256 digests for every
|
| 7 |
+
payload and output shard.
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
from __future__ import annotations
|
| 11 |
+
|
| 12 |
+
import argparse
|
| 13 |
+
import collections
|
| 14 |
+
import datetime as dt
|
| 15 |
+
import hashlib
|
| 16 |
+
import json
|
| 17 |
+
import os
|
| 18 |
+
import re
|
| 19 |
+
import tarfile
|
| 20 |
+
from pathlib import Path, PurePosixPath
|
| 21 |
+
from typing import Any, Iterable
|
| 22 |
+
|
| 23 |
+
import pyarrow as pa
|
| 24 |
+
import pyarrow.parquet as pq
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
DATASET_ALIASES = {
|
| 28 |
+
"cifar10": "CIFAR-10",
|
| 29 |
+
"cifar100": "CIFAR-100",
|
| 30 |
+
"tiny": "TinyImageNet-200",
|
| 31 |
+
"imagenette": "ImageNette",
|
| 32 |
+
"imagenette128": "ImageNette",
|
| 33 |
+
"imagenet": "ImageNet-1K",
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
NUM_CLASSES = {
|
| 37 |
+
"CIFAR-10": 10,
|
| 38 |
+
"CIFAR-100": 100,
|
| 39 |
+
"TinyImageNet-200": 200,
|
| 40 |
+
"ImageNette": 10,
|
| 41 |
+
"ImageNet-1K": 1000,
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
STANDARD_GROUPS = {
|
| 45 |
+
"DC": {"CIFAR-10": (1, 10, 50), "CIFAR-100": (1, 10, 50)},
|
| 46 |
+
"DM": {"CIFAR-10": (1, 10, 50), "CIFAR-100": (1, 10, 50)},
|
| 47 |
+
"DSA": {"CIFAR-10": (1, 10, 50), "CIFAR-100": (1, 10, 50)},
|
| 48 |
+
"ATT": {
|
| 49 |
+
"CIFAR-10": (1, 10, 50),
|
| 50 |
+
"CIFAR-100": (1, 10, 50),
|
| 51 |
+
"TinyImageNet-200": (1, 10, 50),
|
| 52 |
+
"ImageNette": (1, 10),
|
| 53 |
+
},
|
| 54 |
+
"MTT": {
|
| 55 |
+
"CIFAR-10": (1, 10, 50),
|
| 56 |
+
"CIFAR-100": (1, 10, 50),
|
| 57 |
+
"TinyImageNet-200": (1, 10, 50),
|
| 58 |
+
"ImageNette": (1, 10),
|
| 59 |
+
},
|
| 60 |
+
"TESLA": {
|
| 61 |
+
"CIFAR-10": (1, 10, 50),
|
| 62 |
+
"CIFAR-100": (1, 10, 50),
|
| 63 |
+
"TinyImageNet-200": (1, 10, 50),
|
| 64 |
+
"ImageNette": (1, 10),
|
| 65 |
+
},
|
| 66 |
+
"CVDD": {
|
| 67 |
+
"CIFAR-10": (1, 10, 50),
|
| 68 |
+
"CIFAR-100": (1, 10, 50),
|
| 69 |
+
"TinyImageNet-200": (1, 10, 50),
|
| 70 |
+
"ImageNette": (1, 10, 50),
|
| 71 |
+
"ImageNet-1K": (1, 10, 50),
|
| 72 |
+
},
|
| 73 |
+
"GVBSM": {
|
| 74 |
+
"CIFAR-10": (1, 10, 50),
|
| 75 |
+
"CIFAR-100": (1, 10, 50),
|
| 76 |
+
"TinyImageNet-200": (1, 10, 50),
|
| 77 |
+
"ImageNet-1K": (1, 10, 50),
|
| 78 |
+
},
|
| 79 |
+
"SCDD": {"CIFAR-10": (1, 10, 50), "CIFAR-100": (1, 10, 50)},
|
| 80 |
+
"SRe2L": {
|
| 81 |
+
"TinyImageNet-200": (1, 10, 50),
|
| 82 |
+
"ImageNet-1K": (1, 10, 50),
|
| 83 |
+
},
|
| 84 |
+
"WMDD": {
|
| 85 |
+
"TinyImageNet-200": (1, 10, 50),
|
| 86 |
+
"ImageNette": (10, 50),
|
| 87 |
+
"ImageNet-1K": (1, 10, 50),
|
| 88 |
+
},
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
FRED_COUNTS = {
|
| 92 |
+
("CIFAR-10", 1): 160,
|
| 93 |
+
("CIFAR-10", 10): 640,
|
| 94 |
+
("CIFAR-10", 50): 2000,
|
| 95 |
+
("CIFAR-100", 1): 800,
|
| 96 |
+
("CIFAR-100", 10): 1000,
|
| 97 |
+
("CIFAR-100", 50): 5000,
|
| 98 |
+
("TinyImageNet-200", 1): 1600,
|
| 99 |
+
("ImageNette", 1): 80,
|
| 100 |
+
("ImageNette", 10): 400,
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
NCFM_GROUPS = {
|
| 104 |
+
"CIFAR-10": (1, 10, 50),
|
| 105 |
+
"CIFAR-100": (1, 10, 50),
|
| 106 |
+
"TinyImageNet-200": (1, 10, 50),
|
| 107 |
+
"ImageNette": (1, 10, 50),
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
TEACHERS = {
|
| 111 |
+
"other_pretrained_models/CVDD/cifar10/ResNet18.pth": {
|
| 112 |
+
"provider": "CVDD",
|
| 113 |
+
"dataset": "CIFAR-10",
|
| 114 |
+
"architecture": "ResNet18",
|
| 115 |
+
"used_by": ["CVDD"],
|
| 116 |
+
},
|
| 117 |
+
"other_pretrained_models/CVDD/cifar100/ResNet18.pth": {
|
| 118 |
+
"provider": "CVDD",
|
| 119 |
+
"dataset": "CIFAR-100",
|
| 120 |
+
"architecture": "ResNet18",
|
| 121 |
+
"used_by": ["CVDD"],
|
| 122 |
+
},
|
| 123 |
+
"other_pretrained_models/GVBSM/CIFAR-10/ResNet18/squeeze_ResNet18.pth": {
|
| 124 |
+
"provider": "GVBSM",
|
| 125 |
+
"dataset": "CIFAR-10",
|
| 126 |
+
"architecture": "ResNet18",
|
| 127 |
+
"used_by": ["GVBSM"],
|
| 128 |
+
},
|
| 129 |
+
"other_pretrained_models/GVBSM/CIFAR-100/ResNet18/squeeze_ResNet18.pth": {
|
| 130 |
+
"provider": "GVBSM",
|
| 131 |
+
"dataset": "CIFAR-100",
|
| 132 |
+
"architecture": "ResNet18",
|
| 133 |
+
"used_by": ["GVBSM"],
|
| 134 |
+
},
|
| 135 |
+
"other_pretrained_models/WMDD/tiny-imagenet_model_49.pth": {
|
| 136 |
+
"provider": "WMDD",
|
| 137 |
+
"dataset": "TinyImageNet-200",
|
| 138 |
+
"architecture": "ResNet18",
|
| 139 |
+
"used_by": ["WMDD"],
|
| 140 |
+
},
|
| 141 |
+
"other_pretrained_models/WMDD/imagenette_model_49.pth": {
|
| 142 |
+
"provider": "WMDD",
|
| 143 |
+
"dataset": "ImageNette",
|
| 144 |
+
"architecture": "ResNet18",
|
| 145 |
+
"used_by": ["WMDD"],
|
| 146 |
+
},
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
MISSING_TEACHERS = [
|
| 150 |
+
"other_pretrained_models/GVBSM/tiny/ResNet18/squeeze_ResNet18.pth",
|
| 151 |
+
"other_pretrained_models/SRe2L/cifar10/ckpt.pth",
|
| 152 |
+
"other_pretrained_models/SRe2L/cifar100/ckpt.pth",
|
| 153 |
+
"torchvision official ResNet-18 checkpoint (runtime dependency)",
|
| 154 |
+
]
|
| 155 |
+
|
| 156 |
+
IMAGE_SCHEMA = pa.schema(
|
| 157 |
+
[
|
| 158 |
+
pa.field("method", pa.string(), nullable=False),
|
| 159 |
+
pa.field("dataset", pa.string(), nullable=False),
|
| 160 |
+
pa.field("ipc", pa.int32(), nullable=False),
|
| 161 |
+
pa.field("class_id", pa.int32(), nullable=False),
|
| 162 |
+
pa.field("image_id", pa.int32(), nullable=False),
|
| 163 |
+
pa.field("source_path", pa.string(), nullable=False),
|
| 164 |
+
pa.field("extension", pa.string(), nullable=False),
|
| 165 |
+
pa.field(
|
| 166 |
+
"image",
|
| 167 |
+
pa.struct(
|
| 168 |
+
[
|
| 169 |
+
pa.field("bytes", pa.binary(), nullable=False),
|
| 170 |
+
pa.field("path", pa.string(), nullable=False),
|
| 171 |
+
]
|
| 172 |
+
),
|
| 173 |
+
nullable=False,
|
| 174 |
+
),
|
| 175 |
+
pa.field("sample_weight", pa.float64()),
|
| 176 |
+
pa.field("sha256", pa.string(), nullable=False),
|
| 177 |
+
pa.field("byte_size", pa.int64(), nullable=False),
|
| 178 |
+
pa.field("source_archive", pa.string(), nullable=False),
|
| 179 |
+
]
|
| 180 |
+
)
|
| 181 |
+
|
| 182 |
+
TEACHER_SCHEMA = pa.schema(
|
| 183 |
+
[
|
| 184 |
+
pa.field("provider", pa.string(), nullable=False),
|
| 185 |
+
pa.field("dataset", pa.string(), nullable=False),
|
| 186 |
+
pa.field("architecture", pa.string(), nullable=False),
|
| 187 |
+
pa.field("used_by", pa.list_(pa.string()), nullable=False),
|
| 188 |
+
pa.field("source_path", pa.string(), nullable=False),
|
| 189 |
+
pa.field("checkpoint", pa.binary(), nullable=False),
|
| 190 |
+
pa.field("sha256", pa.string(), nullable=False),
|
| 191 |
+
pa.field("byte_size", pa.int64(), nullable=False),
|
| 192 |
+
pa.field("source_archive", pa.string(), nullable=False),
|
| 193 |
+
]
|
| 194 |
+
)
|
| 195 |
+
|
| 196 |
+
SHARD_SCHEMA = pa.schema(
|
| 197 |
+
[
|
| 198 |
+
pa.field("asset_type", pa.string(), nullable=False),
|
| 199 |
+
pa.field("relative_path", pa.string(), nullable=False),
|
| 200 |
+
pa.field("method_or_provider", pa.string(), nullable=False),
|
| 201 |
+
pa.field("row_count", pa.int64(), nullable=False),
|
| 202 |
+
pa.field("payload_bytes", pa.int64(), nullable=False),
|
| 203 |
+
pa.field("parquet_bytes", pa.int64(), nullable=False),
|
| 204 |
+
pa.field("sha256", pa.string(), nullable=False),
|
| 205 |
+
]
|
| 206 |
+
)
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
def sha256_file(path: Path, chunk_size: int = 8 * 1024 * 1024) -> str:
|
| 210 |
+
digest = hashlib.sha256()
|
| 211 |
+
with path.open("rb") as handle:
|
| 212 |
+
while chunk := handle.read(chunk_size):
|
| 213 |
+
digest.update(chunk)
|
| 214 |
+
return digest.hexdigest()
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
def normalized_tar_path(name: str) -> str:
|
| 218 |
+
value = name.replace("\\", "/")
|
| 219 |
+
while value.startswith("./"):
|
| 220 |
+
value = value[2:]
|
| 221 |
+
return value
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
def parse_image_path(name: str) -> tuple[str, int, int, int, str]:
|
| 225 |
+
normalized = normalized_tar_path(name)
|
| 226 |
+
parts = PurePosixPath(normalized).parts
|
| 227 |
+
dataset = next(
|
| 228 |
+
(DATASET_ALIASES[p.lower()] for p in parts if p.lower() in DATASET_ALIASES),
|
| 229 |
+
None,
|
| 230 |
+
)
|
| 231 |
+
ipc_token = next((p for p in parts if re.fullmatch(r"ipc\d+", p.lower())), None)
|
| 232 |
+
class_token = next((p for p in parts if re.fullmatch(r"new\d+", p.lower())), None)
|
| 233 |
+
if dataset is None or ipc_token is None or class_token is None:
|
| 234 |
+
raise ValueError(f"Cannot parse dataset/ipc/class from {normalized!r}")
|
| 235 |
+
|
| 236 |
+
ipc = int(ipc_token[3:])
|
| 237 |
+
class_id = int(class_token[3:])
|
| 238 |
+
filename = parts[-1]
|
| 239 |
+
explicit = re.search(r"class(\d+)_id(\d+)", filename, flags=re.IGNORECASE)
|
| 240 |
+
generic = re.search(r"image_(\d+)", filename, flags=re.IGNORECASE)
|
| 241 |
+
if explicit:
|
| 242 |
+
filename_class = int(explicit.group(1))
|
| 243 |
+
if filename_class != class_id:
|
| 244 |
+
raise ValueError(
|
| 245 |
+
f"Directory class {class_id} disagrees with filename class "
|
| 246 |
+
f"{filename_class}: {normalized}"
|
| 247 |
+
)
|
| 248 |
+
image_id = int(explicit.group(2))
|
| 249 |
+
elif generic:
|
| 250 |
+
image_id = int(generic.group(1))
|
| 251 |
+
else:
|
| 252 |
+
raise ValueError(f"Cannot parse image id from {normalized!r}")
|
| 253 |
+
|
| 254 |
+
extension = Path(filename).suffix.lower()
|
| 255 |
+
if extension not in {".jpg", ".jpeg", ".png"}:
|
| 256 |
+
raise ValueError(f"Unsupported image extension in {normalized!r}")
|
| 257 |
+
return dataset, ipc, class_id, image_id, extension
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
def expected_physical_counts() -> dict[tuple[str, str, int], int]:
|
| 261 |
+
result: dict[tuple[str, str, int], int] = {}
|
| 262 |
+
for method, datasets in STANDARD_GROUPS.items():
|
| 263 |
+
for dataset, ipcs in datasets.items():
|
| 264 |
+
for ipc in ipcs:
|
| 265 |
+
result[(method, dataset, ipc)] = NUM_CLASSES[dataset] * ipc
|
| 266 |
+
for (dataset, ipc), count in FRED_COUNTS.items():
|
| 267 |
+
result[("FreD", dataset, ipc)] = count
|
| 268 |
+
for dataset, ipcs in NCFM_GROUPS.items():
|
| 269 |
+
for ipc in ipcs:
|
| 270 |
+
result[("NCFM", dataset, ipc)] = NUM_CLASSES[dataset] * ipc * 4
|
| 271 |
+
return result
|
| 272 |
+
|
| 273 |
+
|
| 274 |
+
def load_wmdd_weights(archive: Path) -> dict[tuple[str, int], list[list[float]]]:
|
| 275 |
+
result: dict[tuple[str, int], list[list[float]]] = {}
|
| 276 |
+
with tarfile.open(archive, "r:gz") as tf:
|
| 277 |
+
for member in tf:
|
| 278 |
+
if not member.isfile() or not member.name.endswith("sample_weights.txt"):
|
| 279 |
+
continue
|
| 280 |
+
dataset, ipc, _, _, _ = parse_weight_path(member.name)
|
| 281 |
+
extracted = tf.extractfile(member)
|
| 282 |
+
if extracted is None:
|
| 283 |
+
raise RuntimeError(f"Cannot extract {member.name}")
|
| 284 |
+
lines = extracted.read().decode("utf-8").splitlines()
|
| 285 |
+
matrix = [[float(value) for value in line.split()] for line in lines]
|
| 286 |
+
if len(matrix) != NUM_CLASSES[dataset]:
|
| 287 |
+
raise ValueError(f"Wrong class count in {member.name}: {len(matrix)}")
|
| 288 |
+
if any(len(row) != ipc for row in matrix):
|
| 289 |
+
raise ValueError(f"Wrong IPC width in {member.name}")
|
| 290 |
+
result[(dataset, ipc)] = matrix
|
| 291 |
+
return result
|
| 292 |
+
|
| 293 |
+
|
| 294 |
+
def parse_weight_path(name: str) -> tuple[str, int, int, int, str]:
|
| 295 |
+
normalized = normalized_tar_path(name)
|
| 296 |
+
parts = PurePosixPath(normalized).parts
|
| 297 |
+
dataset = next(
|
| 298 |
+
(DATASET_ALIASES[p.lower()] for p in parts if p.lower() in DATASET_ALIASES),
|
| 299 |
+
None,
|
| 300 |
+
)
|
| 301 |
+
ipc_token = next((p for p in parts if re.fullmatch(r"ipc\d+", p.lower())), None)
|
| 302 |
+
if dataset is None or ipc_token is None:
|
| 303 |
+
raise ValueError(f"Cannot parse WMDD weight path {normalized!r}")
|
| 304 |
+
return dataset, int(ipc_token[3:]), 0, 0, ".txt"
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
class ImageShardWriter:
|
| 308 |
+
def __init__(self, root: Path, method: str, target_bytes: int, batch_size: int):
|
| 309 |
+
self.root = root
|
| 310 |
+
self.method = method
|
| 311 |
+
self.target_bytes = target_bytes
|
| 312 |
+
self.batch_size = batch_size
|
| 313 |
+
self.shard_index = -1
|
| 314 |
+
self.writer: pq.ParquetWriter | None = None
|
| 315 |
+
self.path: Path | None = None
|
| 316 |
+
self.rows: list[dict[str, Any]] = []
|
| 317 |
+
self.rows_in_shard = 0
|
| 318 |
+
self.payload_in_shard = 0
|
| 319 |
+
self.records: list[dict[str, Any]] = []
|
| 320 |
+
|
| 321 |
+
def _open(self) -> None:
|
| 322 |
+
self.shard_index += 1
|
| 323 |
+
directory = self.root / "data" / "images" / self.method
|
| 324 |
+
directory.mkdir(parents=True, exist_ok=True)
|
| 325 |
+
self.path = directory / f"train-{self.shard_index:05d}.parquet"
|
| 326 |
+
if self.path.exists():
|
| 327 |
+
raise FileExistsError(f"Refusing to overwrite {self.path}")
|
| 328 |
+
self.writer = pq.ParquetWriter(
|
| 329 |
+
self.path,
|
| 330 |
+
IMAGE_SCHEMA,
|
| 331 |
+
compression="zstd",
|
| 332 |
+
compression_level=3,
|
| 333 |
+
use_dictionary=["method", "dataset", "extension", "source_archive"],
|
| 334 |
+
write_statistics=[
|
| 335 |
+
"method",
|
| 336 |
+
"dataset",
|
| 337 |
+
"ipc",
|
| 338 |
+
"class_id",
|
| 339 |
+
"image_id",
|
| 340 |
+
"sample_weight",
|
| 341 |
+
"byte_size",
|
| 342 |
+
],
|
| 343 |
+
data_page_size=1024 * 1024,
|
| 344 |
+
)
|
| 345 |
+
|
| 346 |
+
def _flush_rows(self) -> None:
|
| 347 |
+
if not self.rows:
|
| 348 |
+
return
|
| 349 |
+
assert self.writer is not None
|
| 350 |
+
table = pa.Table.from_pylist(self.rows, schema=IMAGE_SCHEMA)
|
| 351 |
+
self.writer.write_table(table, row_group_size=self.batch_size)
|
| 352 |
+
self.rows.clear()
|
| 353 |
+
|
| 354 |
+
def _close(self) -> None:
|
| 355 |
+
if self.writer is None or self.path is None:
|
| 356 |
+
return
|
| 357 |
+
self._flush_rows()
|
| 358 |
+
self.writer.close()
|
| 359 |
+
parquet_file = pq.ParquetFile(self.path)
|
| 360 |
+
if parquet_file.metadata.num_rows != self.rows_in_shard:
|
| 361 |
+
raise RuntimeError(f"Row-count mismatch in {self.path}")
|
| 362 |
+
self.records.append(
|
| 363 |
+
{
|
| 364 |
+
"asset_type": "image",
|
| 365 |
+
"relative_path": self.path.relative_to(self.root).as_posix(),
|
| 366 |
+
"method_or_provider": self.method,
|
| 367 |
+
"row_count": self.rows_in_shard,
|
| 368 |
+
"payload_bytes": self.payload_in_shard,
|
| 369 |
+
"parquet_bytes": self.path.stat().st_size,
|
| 370 |
+
"sha256": sha256_file(self.path),
|
| 371 |
+
}
|
| 372 |
+
)
|
| 373 |
+
self.writer = None
|
| 374 |
+
self.path = None
|
| 375 |
+
self.rows_in_shard = 0
|
| 376 |
+
self.payload_in_shard = 0
|
| 377 |
+
|
| 378 |
+
def append(self, row: dict[str, Any]) -> None:
|
| 379 |
+
payload_size = int(row["byte_size"])
|
| 380 |
+
if self.writer is None:
|
| 381 |
+
self._open()
|
| 382 |
+
elif self.rows_in_shard and self.payload_in_shard + payload_size > self.target_bytes:
|
| 383 |
+
self._close()
|
| 384 |
+
self._open()
|
| 385 |
+
self.rows.append(row)
|
| 386 |
+
self.rows_in_shard += 1
|
| 387 |
+
self.payload_in_shard += payload_size
|
| 388 |
+
if len(self.rows) >= self.batch_size:
|
| 389 |
+
self._flush_rows()
|
| 390 |
+
|
| 391 |
+
def close(self) -> list[dict[str, Any]]:
|
| 392 |
+
self._close()
|
| 393 |
+
return self.records
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
def convert_images(
|
| 397 |
+
inner_root: Path, output_root: Path, target_bytes: int, batch_size: int
|
| 398 |
+
) -> tuple[list[dict[str, Any]], dict[tuple[str, str, int], int], int, int]:
|
| 399 |
+
expected = expected_physical_counts()
|
| 400 |
+
observed: collections.Counter[tuple[str, str, int]] = collections.Counter()
|
| 401 |
+
class_ids: dict[tuple[str, str, int], set[int]] = collections.defaultdict(set)
|
| 402 |
+
shard_records: list[dict[str, Any]] = []
|
| 403 |
+
total_payload = 0
|
| 404 |
+
total_rows = 0
|
| 405 |
+
|
| 406 |
+
archives = sorted(inner_root.glob("*.tar.gz"))
|
| 407 |
+
archive_methods = {path.name.removesuffix(".tar.gz") for path in archives}
|
| 408 |
+
expected_methods = set(STANDARD_GROUPS) | {"FreD", "NCFM"}
|
| 409 |
+
if archive_methods != expected_methods:
|
| 410 |
+
raise ValueError(
|
| 411 |
+
f"Method archives differ from checklist: found={sorted(archive_methods)}, "
|
| 412 |
+
f"expected={sorted(expected_methods)}"
|
| 413 |
+
)
|
| 414 |
+
|
| 415 |
+
for archive in archives:
|
| 416 |
+
method = archive.name.removesuffix(".tar.gz")
|
| 417 |
+
print(f"[images] {method}: reading {archive.name}", flush=True)
|
| 418 |
+
weights = load_wmdd_weights(archive) if method == "WMDD" else {}
|
| 419 |
+
writer = ImageShardWriter(output_root, method, target_bytes, batch_size)
|
| 420 |
+
with tarfile.open(archive, "r:gz") as tf:
|
| 421 |
+
for member in tf:
|
| 422 |
+
if not member.isfile():
|
| 423 |
+
continue
|
| 424 |
+
normalized = normalized_tar_path(member.name)
|
| 425 |
+
suffix = Path(normalized).suffix.lower()
|
| 426 |
+
if suffix == ".txt" and normalized.endswith("sample_weights.txt"):
|
| 427 |
+
if method != "WMDD":
|
| 428 |
+
raise ValueError(f"Unexpected sample weights outside WMDD: {normalized}")
|
| 429 |
+
continue
|
| 430 |
+
if suffix not in {".jpg", ".jpeg", ".png"}:
|
| 431 |
+
raise ValueError(f"Unexpected non-image file in {archive.name}: {normalized}")
|
| 432 |
+
|
| 433 |
+
dataset, ipc, class_id, image_id, extension = parse_image_path(normalized)
|
| 434 |
+
key = (method, dataset, ipc)
|
| 435 |
+
if key not in expected:
|
| 436 |
+
raise ValueError(f"Image group is not in the checklist: {key}")
|
| 437 |
+
if class_id < 0 or class_id >= NUM_CLASSES[dataset]:
|
| 438 |
+
raise ValueError(f"Class id outside range in {normalized}")
|
| 439 |
+
extracted = tf.extractfile(member)
|
| 440 |
+
if extracted is None:
|
| 441 |
+
raise RuntimeError(f"Cannot extract {normalized}")
|
| 442 |
+
payload = extracted.read()
|
| 443 |
+
if len(payload) != member.size:
|
| 444 |
+
raise RuntimeError(
|
| 445 |
+
f"Short read for {normalized}: {len(payload)} != {member.size}"
|
| 446 |
+
)
|
| 447 |
+
|
| 448 |
+
sample_weight = None
|
| 449 |
+
if method == "WMDD":
|
| 450 |
+
matrix = weights.get((dataset, ipc))
|
| 451 |
+
if matrix is None:
|
| 452 |
+
raise ValueError(f"Missing WMDD weights for {dataset} IPC {ipc}")
|
| 453 |
+
if image_id < 0 or image_id >= ipc:
|
| 454 |
+
raise ValueError(f"WMDD image id outside IPC range: {normalized}")
|
| 455 |
+
sample_weight = matrix[class_id][image_id]
|
| 456 |
+
|
| 457 |
+
writer.append(
|
| 458 |
+
{
|
| 459 |
+
"method": method,
|
| 460 |
+
"dataset": dataset,
|
| 461 |
+
"ipc": ipc,
|
| 462 |
+
"class_id": class_id,
|
| 463 |
+
"image_id": image_id,
|
| 464 |
+
"source_path": normalized,
|
| 465 |
+
"extension": extension,
|
| 466 |
+
"image": {"bytes": payload, "path": normalized},
|
| 467 |
+
"sample_weight": sample_weight,
|
| 468 |
+
"sha256": hashlib.sha256(payload).hexdigest(),
|
| 469 |
+
"byte_size": len(payload),
|
| 470 |
+
"source_archive": archive.name,
|
| 471 |
+
}
|
| 472 |
+
)
|
| 473 |
+
observed[key] += 1
|
| 474 |
+
class_ids[key].add(class_id)
|
| 475 |
+
total_rows += 1
|
| 476 |
+
total_payload += len(payload)
|
| 477 |
+
|
| 478 |
+
shard_records.extend(writer.close())
|
| 479 |
+
method_rows = sum(value for key, value in observed.items() if key[0] == method)
|
| 480 |
+
print(f"[images] {method}: wrote {method_rows:,} rows", flush=True)
|
| 481 |
+
|
| 482 |
+
if dict(observed) != expected:
|
| 483 |
+
missing = {key: value for key, value in expected.items() if observed.get(key) != value}
|
| 484 |
+
extra = {key: value for key, value in observed.items() if expected.get(key) != value}
|
| 485 |
+
raise ValueError(f"Physical count validation failed; expected-diff={missing}, observed-diff={extra}")
|
| 486 |
+
for key in sorted(expected):
|
| 487 |
+
required = set(range(NUM_CLASSES[key[1]]))
|
| 488 |
+
if class_ids[key] != required:
|
| 489 |
+
raise ValueError(f"Class coverage validation failed for {key}")
|
| 490 |
+
return shard_records, dict(observed), total_rows, total_payload
|
| 491 |
+
|
| 492 |
+
|
| 493 |
+
def teacher_filename(spec: dict[str, Any]) -> str:
|
| 494 |
+
values = [spec["provider"], spec["dataset"], spec["architecture"]]
|
| 495 |
+
return "-".join(re.sub(r"[^A-Za-z0-9]+", "-", value).strip("-") for value in values).lower()
|
| 496 |
+
|
| 497 |
+
|
| 498 |
+
def convert_teachers(
|
| 499 |
+
archive: Path, output_root: Path
|
| 500 |
+
) -> tuple[list[dict[str, Any]], list[dict[str, Any]], int]:
|
| 501 |
+
output_dir = output_root / "data" / "teachers"
|
| 502 |
+
output_dir.mkdir(parents=True, exist_ok=True)
|
| 503 |
+
found: dict[str, dict[str, Any]] = {}
|
| 504 |
+
shard_records: list[dict[str, Any]] = []
|
| 505 |
+
total_payload = 0
|
| 506 |
+
|
| 507 |
+
with tarfile.open(archive, "r:") as tf:
|
| 508 |
+
for member in tf:
|
| 509 |
+
if not member.isfile():
|
| 510 |
+
continue
|
| 511 |
+
normalized = normalized_tar_path(member.name)
|
| 512 |
+
spec = TEACHERS.get(normalized)
|
| 513 |
+
if spec is None:
|
| 514 |
+
continue
|
| 515 |
+
extracted = tf.extractfile(member)
|
| 516 |
+
if extracted is None:
|
| 517 |
+
raise RuntimeError(f"Cannot extract {normalized}")
|
| 518 |
+
payload = extracted.read()
|
| 519 |
+
if len(payload) != member.size:
|
| 520 |
+
raise RuntimeError(f"Short read for {normalized}")
|
| 521 |
+
digest = hashlib.sha256(payload).hexdigest()
|
| 522 |
+
output = output_dir / f"{teacher_filename(spec)}.parquet"
|
| 523 |
+
if output.exists():
|
| 524 |
+
raise FileExistsError(f"Refusing to overwrite {output}")
|
| 525 |
+
row = {
|
| 526 |
+
**spec,
|
| 527 |
+
"source_path": normalized,
|
| 528 |
+
"checkpoint": payload,
|
| 529 |
+
"sha256": digest,
|
| 530 |
+
"byte_size": len(payload),
|
| 531 |
+
"source_archive": archive.name,
|
| 532 |
+
}
|
| 533 |
+
table = pa.Table.from_pylist([row], schema=TEACHER_SCHEMA)
|
| 534 |
+
pq.write_table(
|
| 535 |
+
table,
|
| 536 |
+
output,
|
| 537 |
+
compression="zstd",
|
| 538 |
+
compression_level=1,
|
| 539 |
+
use_dictionary=["provider", "dataset", "architecture", "source_archive"],
|
| 540 |
+
write_statistics=["provider", "dataset", "architecture", "byte_size"],
|
| 541 |
+
data_page_size=1024 * 1024,
|
| 542 |
+
)
|
| 543 |
+
check = pq.read_table(output, columns=["sha256", "byte_size"]).to_pylist()[0]
|
| 544 |
+
if check["sha256"] != digest or check["byte_size"] != len(payload):
|
| 545 |
+
raise RuntimeError(f"Teacher Parquet verification failed for {output}")
|
| 546 |
+
found[normalized] = {key: value for key, value in row.items() if key != "checkpoint"}
|
| 547 |
+
total_payload += len(payload)
|
| 548 |
+
shard_records.append(
|
| 549 |
+
{
|
| 550 |
+
"asset_type": "teacher",
|
| 551 |
+
"relative_path": output.relative_to(output_root).as_posix(),
|
| 552 |
+
"method_or_provider": spec["provider"],
|
| 553 |
+
"row_count": 1,
|
| 554 |
+
"payload_bytes": len(payload),
|
| 555 |
+
"parquet_bytes": output.stat().st_size,
|
| 556 |
+
"sha256": sha256_file(output),
|
| 557 |
+
}
|
| 558 |
+
)
|
| 559 |
+
print(f"[teacher] {normalized}: {len(payload):,} bytes", flush=True)
|
| 560 |
+
|
| 561 |
+
missing_present = sorted(set(TEACHERS) - set(found))
|
| 562 |
+
if missing_present:
|
| 563 |
+
raise ValueError(f"Checklist says teacher exists but archive lookup failed: {missing_present}")
|
| 564 |
+
return shard_records, [found[path] for path in TEACHERS], total_payload
|
| 565 |
+
|
| 566 |
+
|
| 567 |
+
def write_manifest(output_root: Path, records: Iterable[dict[str, Any]]) -> None:
|
| 568 |
+
manifest_dir = output_root / "data" / "manifest"
|
| 569 |
+
manifest_dir.mkdir(parents=True, exist_ok=True)
|
| 570 |
+
output = manifest_dir / "shards.parquet"
|
| 571 |
+
if output.exists():
|
| 572 |
+
raise FileExistsError(f"Refusing to overwrite {output}")
|
| 573 |
+
table = pa.Table.from_pylist(list(records), schema=SHARD_SCHEMA)
|
| 574 |
+
pq.write_table(table, output, compression="zstd", compression_level=3)
|
| 575 |
+
|
| 576 |
+
|
| 577 |
+
def main() -> None:
|
| 578 |
+
parser = argparse.ArgumentParser()
|
| 579 |
+
parser.add_argument("--inner-root", required=True, type=Path)
|
| 580 |
+
parser.add_argument("--teacher-archive", required=True, type=Path)
|
| 581 |
+
parser.add_argument("--output-root", required=True, type=Path)
|
| 582 |
+
parser.add_argument("--target-shard-mib", type=int, default=450)
|
| 583 |
+
parser.add_argument("--batch-size", type=int, default=512)
|
| 584 |
+
args = parser.parse_args()
|
| 585 |
+
|
| 586 |
+
data_root = args.output_root / "data"
|
| 587 |
+
if data_root.exists() and any(data_root.rglob("*.parquet")):
|
| 588 |
+
raise FileExistsError(
|
| 589 |
+
f"Parquet output already exists under {data_root}; refusing to overwrite"
|
| 590 |
+
)
|
| 591 |
+
args.output_root.mkdir(parents=True, exist_ok=True)
|
| 592 |
+
|
| 593 |
+
image_shards, counts, image_rows, image_payload = convert_images(
|
| 594 |
+
args.inner_root,
|
| 595 |
+
args.output_root,
|
| 596 |
+
args.target_shard_mib * 1024 * 1024,
|
| 597 |
+
args.batch_size,
|
| 598 |
+
)
|
| 599 |
+
teacher_shards, teachers, teacher_payload = convert_teachers(
|
| 600 |
+
args.teacher_archive, args.output_root
|
| 601 |
+
)
|
| 602 |
+
all_shards = image_shards + teacher_shards
|
| 603 |
+
write_manifest(args.output_root, all_shards)
|
| 604 |
+
|
| 605 |
+
summary = {
|
| 606 |
+
"created_at_utc": dt.datetime.now(dt.timezone.utc).isoformat(),
|
| 607 |
+
"format": "byte-preserving Parquet",
|
| 608 |
+
"image_schema": str(IMAGE_SCHEMA),
|
| 609 |
+
"teacher_schema": str(TEACHER_SCHEMA),
|
| 610 |
+
"image_rows": image_rows,
|
| 611 |
+
"image_payload_bytes": image_payload,
|
| 612 |
+
"teacher_rows": len(teachers),
|
| 613 |
+
"teacher_payload_bytes": teacher_payload,
|
| 614 |
+
"image_group_counts": [
|
| 615 |
+
{"method": key[0], "dataset": key[1], "ipc": key[2], "rows": value}
|
| 616 |
+
for key, value in sorted(counts.items())
|
| 617 |
+
],
|
| 618 |
+
"teachers_present": teachers,
|
| 619 |
+
"teachers_missing_from_source_archives": MISSING_TEACHERS,
|
| 620 |
+
"shards": all_shards,
|
| 621 |
+
}
|
| 622 |
+
summary_path = args.output_root / "conversion_summary.json"
|
| 623 |
+
summary_path.write_text(json.dumps(summary, ensure_ascii=False, indent=2), encoding="utf-8")
|
| 624 |
+
print(
|
| 625 |
+
f"[done] images={image_rows:,} ({image_payload:,} bytes), "
|
| 626 |
+
f"teachers={len(teachers)} ({teacher_payload:,} bytes), "
|
| 627 |
+
f"shards={len(all_shards)}",
|
| 628 |
+
flush=True,
|
| 629 |
+
)
|
| 630 |
+
|
| 631 |
+
|
| 632 |
+
if __name__ == "__main__":
|
| 633 |
+
main()
|
data/manifest/shards.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb15bbc596df97d5adf47d61f15a3fa0065681c1dda7069e04f28c76d3e1ea28
|
| 3 |
+
size 4325
|