Skip to content

Commit a920b65

Browse files
Fix bug and release v0.1.2
1 parent 8984fc4 commit a920b65

File tree

7 files changed

+4
-4
lines changed

7 files changed

+4
-4
lines changed

dd_ranking/metrics/hard_label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def compute_metrics(self, image_tensor: Tensor=None, image_path: str=None, hard_
243243
print("Caculating random data hard label metrics...")
244244
random_images, random_data_hard_labels = get_random_images(self.images_train, self.labels_train, self.class_indices_train, self.ipc)
245245
random_data_hard_label_acc, best_lr = self.hyper_param_search_for_hard_label(
246-
image_tensor=image_tensor,
246+
image_tensor=random_images,
247247
image_path=None,
248248
hard_labels=random_data_hard_labels,
249249
mode='syn'

dd_ranking/metrics/soft_label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def compute_metrics(self, image_tensor: Tensor=None, image_path: str=None, soft_
368368
else:
369369
random_data_soft_labels = None
370370
random_data_soft_label_acc, best_lr = self.hyper_param_search_for_soft_label(
371-
image_tensor=image_tensor,
371+
image_tensor=random_images,
372372
image_path=None,
373373
soft_labels=random_data_soft_labels
374374
)

dist/dd_ranking-0.1.1.tar.gz

-31.3 KB
Binary file not shown.

dist/dd_ranking-0.1.2.tar.gz

31 KB
Binary file not shown.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "dd_ranking"
11-
version = "0.1.1"
11+
version = "0.1.2"
1212
description = "DD-Ranking: Rethinking the Evaluation of Dataset Distillation"
1313
readme = "README.md"
1414
requires-python = ">=3.8"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='dd_ranking', # Package name
7-
version='0.1.1', # Version number
7+
version='0.1.2', # Version number
88
description='DD-Ranking: Rethinking the Evaluation of Dataset Distillation',
99
long_description=open('README.md').read(), # Use your README as the long description
1010
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)