Skip to content

Latest commit

 

History

History
58 lines (52 loc) · 3.65 KB

README.md

File metadata and controls

58 lines (52 loc) · 3.65 KB

Paellaaa

A conditional text-to-image generative model based on Paella by Jimmy and Hlky. It incorporates cross attention in addition to using LayerNorm conditioning. It uses both the conditionings from CLIP and T5, similar to the dual conditioning from Kadinsky-2.0.

  ┌───────────────────────────────────────┐
  │                                       │
  │  ┌──────────┐           ┌─────────┐   │
  │  │          ├──────────►│         │   │
  │  │          │           │ Layer   ├───┘
  │  │ OpenCLIP │           │ Norm    │
  │  │          │        ┌─►│         │
  │  │          ├─────┐  │  │         ├────────┐
  │  └──────────┘     │  │  └─────────┘        │
  │                   │  │                     │
  │  ┌──────────┐     │  │  ┌─────────┐        │
  │  │          ├─────┼──┘  │         │        │
  │  │          │     │     │ Cross   │        │
  │  │ T5       │     └────►│ Attn    │        │
  │  │          │           │         │        │
  │  │          ├──────────►│         │        │
  │  └──────────┘           └─┬─────┬─┘        │
  │                           │     │          │
  │                  ┌────────┘     └──────┐   │
  │   UNet Down      │      UNet Up        │   │
  │  ┌────────────┐  │     ┌────────────┐  │   │
  ├─►│            ├──┼─────►            │◄─┼───┤
  │  └─────▲──────┘  │     └─────┬──────┘  │   │
  │        │         │           │         │   │
  │    ┌───┴────┐    │       ┌───▼────┐    │   │
  ├───►│        │    │       │        │◄───┼───┤
  │    └───▲────┘    │       └───┬────┘    │   │
  │        │         │           │         │   │
  │      ┌─┴──┐      │         ┌─▼──┐◄─────┘   │
  └─────►│    │◄─────┘         │    │          │
         └─▲──┘                └─┬──┘◄─────────┘
           │                     │
      ┌────┴─────┐          ┌────▼─────┐
      │          │          │          │
      │Latent in │          │Latent Out│
      │          │          │          │
      │          │          │          │
      │          │          │          │
      └──────────┘          └──────────┘

Weights are forthcoming.

Train your own Paella

The main file for training will be paella.py. During training we use HF dataset.

From Scratch

python3 paella.py

License

The model code and weights are released under the MIT license.