Improve model card: Add license, pipeline tag, paper link, abstract, and usage

#2
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +64 -1
README.md CHANGED
@@ -1 +1,64 @@
1
- check code at https://github.com/SerezD/mi_ml_gen
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: image-classification
4
+ ---
5
+
6
+ # A Mutual Information Perspective on Multiple Latent Variable Generative Models for Positive View Generation
7
+
8
+ The model was presented in the paper [A Mutual Information Perspective on Multiple Latent Variable Generative Models for Positive View Generation](https://huggingface.co/papers/2501.13718).
9
+
10
+ ## Abstract
11
+
12
+ In image generation, Multiple Latent Variable Generative Models (MLVGMs) employ multiple latent variables to gradually shape the final images, from global characteristics to finer and local details (e.g., StyleGAN, NVAE), emerging as powerful tools for diverse applications. Yet their generative dynamics remain only empirically observed, without a systematic understanding of each latent variable's impact. In this work, we propose a novel framework that quantifies the contribution of each latent variable using Mutual Information (MI) as a metric. Our analysis reveals that current MLVGMs often underutilize some latent variables, and provides actionable insights for their use in downstream applications. With this foundation, we introduce a method for generating synthetic data for Self-Supervised Contrastive Representation Learning (SSCRL). By leveraging the hierarchical and disentangled variables of MLVGMs, our approach produces diverse and semantically meaningful views without the need for real image data. Additionally, we introduce a Continuous Sampling (CS) strategy, where the generator dynamically creates new samples during SSCRL training, greatly increasing data variability. Our comprehensive experiments demonstrate the effectiveness of these contributions, showing that MLVGMs' generated views compete on par with or even surpass views generated from real data. This work establishes a principled approach to understanding and exploiting MLVGMs, advancing both generative modeling and self-supervised learning.
13
+
14
+ ## Code and Repository
15
+
16
+ The official GitHub repository for this project can be found at: [https://github.com/SerezD/mi_ml_gen](https://github.com/SerezD/mi_ml_gen)
17
+
18
+ ## Installation
19
+
20
+ To set up the environment and install the necessary dependencies, follow these steps:
21
+
22
+ ```bash
23
+ # Dependencies Install
24
+ conda env create --file environment.yml
25
+ conda activate mi_ml_gen
26
+
27
+ # package install (in development mode)
28
+ conda develop ./mi_ml_gen
29
+ ```
30
+
31
+ ## Generate Multiple Views
32
+
33
+ If your interest is to use the repository just for view generation, simply run the script:
34
+
35
+ ```
36
+ python mi_ml_gen/src/scripts/view_generation.py --configuration ./conf.yaml --save_folder ./tmp/
37
+ ```
38
+
39
+ Examples of valid configurations are:
40
+ `mi_ml_gen/configurations/view_generation/bigbigan.yaml`
41
+ `mi_ml_gen/configurations/view_generation/stylegan.yaml`.
42
+
43
+ For example, they allow to generate things like:
44
+
45
+ ![b_var=0](https://github.com/SerezD/mi_ml_gen/raw/main/images/b_var=0.png) ![b_var=1](https://github.com/SerezD/mi_ml_gen/raw/main/images/b_var=1.png) ![b_var=2](https://github.com/SerezD/mi_ml_gen/raw/main/images/b_var=2.png) ![b_var=3](https://github.com/SerezD/mi_ml_gen/raw/main/images/b_var=3.png)
46
+
47
+ ![s_var=0](https://github.com/SerezD/mi_ml_gen/raw/main/images/s_var=0.png) ![s_var=1](https://github.com/SerezD/mi_ml_gen/raw/main/images/s_var=1.png) ![s_var=2](https://github.com/SerezD/mi_ml_gen/raw/main/images/s_var=2.png) ![s_var=3](https://github.com/SerezD/mi_ml_gen/raw/main/images/s_var=3.png)
48
+
49
+ ## Citation
50
+
51
+ If you find our work useful, please consider citing our paper:
52
+
53
+ ```bibtex
54
+ @article{
55
+ serez2025a,
56
+ title={A Mutual Information Perspective on Multiple Latent Variable Generative Models for Positive View Generation},
57
+ author={Dario Serez and Marco Cristani and Alessio Del Bue and Vittorio Murino and Pietro Morerio},
58
+ journal={Transactions on Machine Learning Research},
59
+ issn={2835-8856},
60
+ year={2025},
61
+ url={https://openreview.net/forum?id=uaj8ZL2PtK},
62
+ note={}
63
+ }
64
+ ```