Add link to paper, GitHub repository, and dataset description

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +65 -5
README.md CHANGED
@@ -1,7 +1,12 @@
1
  ---
2
- license: mit
3
  language:
4
  - en
 
 
 
 
 
 
5
  tags:
6
  - memorization
7
  - generative-models
@@ -9,7 +14,62 @@ tags:
9
  - medical-imaging
10
  - brain-mri
11
  - chest-xray
12
- pretty_name: DeepSSIM Datasets
13
- size_categories:
14
- - 100K<n<1M
15
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  language:
3
  - en
4
+ license: mit
5
+ size_categories:
6
+ - 100K<n<1M
7
+ pretty_name: DeepSSIM Datasets
8
+ task_categories:
9
+ - other
10
  tags:
11
  - memorization
12
  - generative-models
 
14
  - medical-imaging
15
  - brain-mri
16
  - chest-xray
17
+ ---
18
+
19
+ # DeepSSIM Datasets
20
+
21
+ [**Paper**](https://huggingface.co/papers/2509.16582) | [**GitHub**](https://github.com/brAIn-science/DeepSSIM)
22
+
23
+ DeepSSIM is a novel self-supervised metric for quantifying memorization in generative models, particularly in the context of medical imaging. This repository contains the datasets and pre-computed artifacts used to evaluate DeepSSIM against state-of-the-art metrics.
24
+
25
+ The evaluation involves synthetic brain MRI data generated by a Latent Diffusion Model (LDM) trained on 2,195 MRI scans from the publicly available **IXI** and **CoRR** datasets. It also includes evaluation on chest X-ray data.
26
+
27
+ ## Dataset Contents
28
+
29
+ This repository provides:
30
+ - **Similarity Matrices**: Pre-computed matrices for metrics including DeepSSIM, Chen, DAR, and SemDeDup.
31
+ - **Index Files**: Required files to access matrix elements.
32
+ - **Datasets**: Data used for training and testing generative models in memorization-prone conditions.
33
+
34
+ ## Usage
35
+
36
+ The files in this repository are intended to be used with the scripts provided in the [official GitHub repository](https://github.com/brAIn-science/DeepSSIM).
37
+
38
+ ### Computing Similarity Matrices
39
+
40
+ To compute a similarity matrix from embeddings:
41
+
42
+ ```bash
43
+ python scripts/compute_matrix.py \
44
+ --dataset_images_dir PATH \
45
+ --embeddings_dir PATH \
46
+ --matrices_dir PATH \
47
+ --indices_dir PATH \
48
+ --model_path PATH \
49
+ --metric_name {deepssim, chen, dar, semdedup} \
50
+ --use_gpu
51
+ ```
52
+
53
+ ### Evaluating Metrics
54
+
55
+ To evaluate a metric (computing macro F1 score, precision, and recall):
56
+
57
+ ```bash
58
+ python scripts/eval.py \
59
+ --synth_indices_path PATH \
60
+ --real_indices_path PATH \
61
+ --matrix_path PATH \
62
+ --testset_csv PATH \
63
+ --metric_name {deepssim, chen, dar, semdedup}
64
+ ```
65
+
66
+ ## Citation
67
+
68
+ ```bibtex
69
+ @article{scardace2025novel,
70
+ title={A Novel Metric for Detecting Memorization in Generative Models for Brain MRI Synthesis},
71
+ author={Scardace, Antonio and Puglisi, Lemuel and Guarnera, Francesco and Battiato, Sebastiano and Rav{\`\i}, Daniele},
72
+ journal={arXiv preprint arXiv:2509.16582},
73
+ year={2025}
74
+ }
75
+ ```