File size: 2,596 Bytes
bcf5aa4
79209a1
bcf5aa4
 
 
 
591c62b
bcf5aa4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79209a1
 
bcf5aa4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
pipeline_tag: image-text-to-text  
---

<div align="center">
<br>
<img src="banner.webp" width="1000">
<h3>Unified Multimodal Discrete Diffusion</h3>

[Alexander Swerdlow](https://aswerdlow.com/)<sup>1&#42;</sup>&nbsp;
[Mihir Prabhudesai](https://mihirp1998.github.io/)<sup>1&#42;</sup>&nbsp;
[Siddharth Gandhi](hhttps://www.ssgandhi.com/)<sup>1</sup>&nbsp;
[Deepak Pathak](https://www.cs.cmu.edu/~dpathak/)<sup>1</sup>&nbsp;
[Katerina Fragkiadaki](https://www.cs.cmu.edu/~katef/)<sup>1</sup>&nbsp;
<br>

<sup>1</sup> Carnegie Mellon University&nbsp;
 
[![ArXiv](https://img.shields.io/badge/ArXiv-<2503.20853>-<COLOR>.svg)](https://arxiv.org/abs/2503.20853) [![Webpage](https://img.shields.io/badge/Webpage-UniDisc-<COLOR>.svg)](https://unidisc.github.io/) 

<!-- [![Demo](https://img.shields.io/badge/Demo-Custom-<COLOR>.svg)](https://huggingface.co/spaces/todo) -->
  
</div>

## Hugging Face models

The UniDisc checkpoints are available on Hugging Face:
* [Interleaved Image-Text](https://huggingface.co/aswerdlow/unidisc_interleaved)
* [Non-Interleaved (Static)](https://huggingface.co/aswerdlow/unidisc_non_interleaved)

## Getting Started

Code can be found here: https://github.com/alexanderswerdlow/unidisc/tree/main

To install the dependencies, run:
```bash
git submodule update --init --recursive
uv sync --no-group dev
uv sync
```

For a more detailed installation guide, please refer to [INSTALL.md](docs/INSTALL.md).

## Data

See [DATA.md](docs/DATA.md) for details on how to download and preprocess the datasets. We provide processing scripts and instructions for all of the used datasets. Additionally, we release a synthetic dataset available [here](https://huggingface.co/datasets/aswerdlow/unidisc_hq) and the corresponding [generation scripts](unidisc/datasets/preprocessing/unidisc_dataset/README.md) as well as the raw data.

## Training

See [TRAIN.md](docs/TRAIN.md) for training commands.

## Inference

<!-- Inference demo for **TODO**.
```
TODO
``` -->
<!-- <img src="docs/todo.png" width="1000"> -->


Interactive demo:
```
python demo/server.py
python demo/client_simple_fasthtml.py
```


## Training

See [TRAINING.md](docs/TRAINING.md) for details.

## Evaluation

See [EVAL.md](docs/EVAL.md) for details.


### Citation
To cite our work, please use the following:
```
@article{TODO,
  title={TODO},
  author={TODO},
  journal={arXiv preprint arXiv:TODO},
  year={TODO}
}
```

## Credits

This repository is built on top of the following repositories:

- [MDLM](https://github.com/kuleshov-group/mdlm)
- [Lumina-T2X](https://github.com/Alpha-VLLM/Lumina-T2X)