Skip to content

Commit 6ddb718

Browse files
2 parents 6f19cb9 + 5a56157 commit 6ddb718

File tree

7 files changed

+51
-19
lines changed

7 files changed

+51
-19
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*.egg
2+
*.eggs
3+
*.eggs-info
4+
*.eggs/
5+
eggs-info/*
6+
dd_ranking.eggs-info/*
7+
PKG-INFO
8+
build/
9+
*.pyc
10+
*.txt

README.md

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Fair and benchmark for dataset distillation.
1414
</h3> -->
1515
<p align="center">
16-
| <a href="https://nus-hpc-ai-lab.github.io/DD-Ranking/"><b>Documentation</b></a> | <a href="https://huggingface.co/spaces/Soptq/DD-Ranking"><b>Leaderboard</b></a> | <b>Paper </b> (Coming Soon) | <a href=""><b>Twitter/X</b></a> | <a href=""><b>Developer Slack</b></a> |
16+
| <a href="https://nus-hpc-ai-lab.github.io/DD-Ranking/"><b>Documentation</b></a> | <a href="https://huggingface.co/spaces/Soptq/DD-Ranking"><b>Leaderboard</b></a> | <a href=""><b>Paper </b> (Coming Soon)</a> | <a href=""><b>Twitter/X</b> (Coming Soon)</a> | <a href=""><b>Developer Slack</b> (Coming Soon)</a> |
1717
</p>
1818

1919

@@ -35,7 +35,7 @@ Fair and benchmark for dataset distillation.
3535

3636
<details>
3737
<summary>Unfold to see more details.</summary>
38-
38+
<br>
3939
Dataset Distillation (DD) aims to condense a large dataset into a much smaller one, which allows a model to achieve comparable performance after training on it. DD has gained extensive attention since it was proposed. With some foundational methods such as DC, DM, and MTT, various works have further pushed this area to a new standard with their novel designs.
4040

4141
![history](./static/history.png)
@@ -58,13 +58,16 @@ Motivated by this, we propose DD-Ranking, a new benchmark for DD evaluation. DD-
5858

5959
## About
6060

61+
<details>
62+
<summary>Unfold to see more details.</summary>
63+
<br>
6164
DD-Ranking (DD, *i.e.*, Dataset Distillation) is an integrated and easy-to-use benchmark for dataset distillation. It aims to provide a fair evaluation scheme for DD methods that can decouple the impacts from knowledge distillation and data augmentation to reflect the real informativeness of the distilled data.
6265

6366
<!-- Hard label is tested -->
6467
<!-- Keep the same compression ratio, comparing with random selection -->
6568
**Performance benchmark**
6669

67-
<span style="color: #ffff00;">[To Verify]:</span>Revisit the original goal of dataset distillation:
70+
Revisit the original goal of dataset distillation:
6871
> The idea is to synthesize a small number of data points that do not need to come from the correct data distribution, but will, when given to the learning algorithm as training data, approximate the model trained on the original data.
6972
>
7073
@@ -85,21 +88,32 @@ $$\text{IOR}/\text{HLR} = \frac{(\text{Acc.}{\text{syn-any}}-\text{Acc.}{\text{r
8588
DD-Ranking is integrated with:
8689
<!-- Uniform Fair Labels: loss on soft label -->
8790
<!-- Data Aug. -->
88-
- <span style="color: #ffff00;">[To Verify]:</span>Multiple [strategies](https://github.com/NUS-HPC-AI-Lab/DD-Ranking/tree/main/dd_ranking/loss) of using soft labels;
89-
- <span style="color: #ffff00;">[To Verify]:</span>Data augmentation, reconsidered as [optional tricks](https://github.com/NUS-HPC-AI-Lab/DD-Ranking/tree/main/dd_ranking/aug) in DD;
90-
- <span style="color: #ffff00;">[To Verify]:</span>Commonly used [model architectures](https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/utils/networks.py) in DD.
91-
<span style="color: #ffff00;">[To Verify]:</span> A new ranking on representative DD methods.
91+
- Multiple [strategies](https://github.com/NUS-HPC-AI-Lab/DD-Ranking/tree/main/dd_ranking/loss) of using soft labels;
92+
- Data augmentation, reconsidered as [optional tricks](https://github.com/NUS-HPC-AI-Lab/DD-Ranking/tree/main/dd_ranking/aug) in DD;
93+
- Commonly used [model architectures](https://github.com/NUS-HPC-AI-Lab/DD-Ranking/blob/main/dd_ranking/utils/networks.py) in DD.
94+
A new ranking on representative DD methods.
9295

9396
DD-Ranking is flexible and easy to use, supported by:
9497
<!-- Defualt configs: Customized configs -->
9598
<!-- Integrated classes: 1) Optimizer and etc.; 2) random selection tests (additionally, w/ or w/o hard labels)-->
96-
- <span style="color: #ffff00;">[To Verify]:</span>Extensive configs provided;
97-
- <span style="color: #ffff00;">[To Verify]:</span>Cutomized configs;
98-
- <span style="color: #ffff00;">[To Verify]:</span>Testing and training framework with integrated metrics.
99+
- Extensive configs provided;
100+
- Cutomized configs;
101+
- Testing and training framework with integrated metrics.
102+
103+
</details>
104+
105+
## Overview
106+
Included datasets and methods (hard/soft label).
107+
|Dataset|Hard Label|Soft Label|
108+
|:-|:-|:-|
109+
|CIFAR-10|DC|DATM|
110+
|CIFAR-100|DSA|SRe2L|
111+
|TinyImageNet|DM|RDED|
112+
||MTT|D4M|
99113

100114
## Coming Soon
101-
<span style="color: #ffff00;">[To Verify]:</span>Rank on different data augmentation methods.
102-
<span style="color: #ffff00;">[To Verify]:</span>Rank on different data augmentation methods.
115+
Rank on different data augmentation methods.
116+
Rank on different data augmentation methods.
103117
## Tutorial
104118

105119
Install DD-Ranking with `pip` or from [source](https://github.com/NUS-HPC-AI-Lab/DD-Ranking/tree/main):
@@ -208,7 +222,7 @@ The following results will be returned to you:
208222
- [Supported Models]() -->
209223

210224
## Contributing
211-
ß
225+
212226
<!-- Only PR for the 1st version of DD-Ranking -->
213227
Feel free to submit grades to update the DD-Ranking list. We welcome and value any contributions and collaborations.
214228
Please check out [CONTRIBUTING.md](./CONTRIBUTING.md) for how to get involved.

configs/__init__.py

Whitespace-only changes.

dd_ranking/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
1+
import dd_ranking.aug as aug
2+
import dd_ranking.config as config
3+
import dd_ranking.loss as loss
4+
import dd_ranking.metrics as metrics
5+
import dd_ranking.utils as utils

dd_ranking/metrics/hard_label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from dd_ranking.utils import build_model, get_pretrained_model_path
1313
from dd_ranking.utils import TensorDataset, get_random_images, get_dataset, save_results
1414
from dd_ranking.utils import set_seed, train_one_epoch, validate, get_optimizer, get_lr_scheduler
15-
from dd_ranking.aug import DSA_Augmentation, ZCA_Whitening_Augmentation, Mixup_Augmentation, Cutmix_Augmentation
15+
from dd_ranking.aug import DSAugmentation, MixupAugmentation, CutmixAugmentation, ZCAWhiteningAugmentation
1616
from dd_ranking.config import Config
1717

1818

dd_ranking/metrics/soft_label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from dd_ranking.utils import TensorDataset, get_random_images, get_dataset, save_results
1414
from dd_ranking.utils import set_seed, train_one_epoch, validate, get_optimizer, get_lr_scheduler
1515
from dd_ranking.loss import SoftCrossEntropyLoss, KLDivergenceLoss
16-
from dd_ranking.aug import DSA_Augmentation, ZCA_Whitening_Augmentation, Mixup_Augmentation, Cutmix_Augmentation
16+
from dd_ranking.aug import DSAugmentation, MixupAugmentation, CutmixAugmentation, ZCAWhiteningAugmentation
1717
from dd_ranking.config import Config
1818

1919

setup.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from setuptools import setup, find_packages
22

3+
packages = find_packages()
4+
35
setup(
4-
name='DD-Ranking', # Package name
6+
name='dd_ranking', # Package name
57
version='0.1.0', # Version number
68
description='DD-Ranking: A unified benchmark for dataset distillation method evaluation',
79
long_description=open('README.md').read(), # Use your README as the long description
@@ -13,8 +15,10 @@
1315
'repository': 'https://github.com/NUS-HPC-AI-Lab/DD-Ranking',
1416
'documentation': 'https://github.com/NUS-HPC-AI-Lab/DD-Ranking'
1517
},
16-
license='MIT', # License type
17-
packages=find_packages(), # Automatically discover submodules
18+
# license='MIT', # License type
19+
include_dirs=['dd_ranking', 'configs'],
20+
include_package_data=True,
21+
packages=packages, # Automatically discover submodules
1822
install_requires=[
1923
'torch',
2024
'numpy',

0 commit comments

Comments
 (0)