# ptrvilya/cosmi architecture

> Architecture diagram of the GitHub repository ptrvilya/cosmi, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ptrvilya/cosmi
- Repository: https://github.com/ptrvilya/cosmi

## Overview

COSMI is a research project for composing multi-object human-object interactions from single-object captures, and for generating variable-object interactions from text with a diffusion transformer. The README also describes a dataset of 222k sequences spanning 275 hours and up to five objects. The repository tree contains no implementation source, so this is a documentation-based product map; relationships are supported by the README, not inspected runtime code.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_synthesis["Interaction synthesis"]
  node_single_object_captures["Single-object captures"]
  node_diffusion_transformer["Diffusion transformer"]
  node_object_slots["Weight-shared object slots"]
  node_multi_object_interaction["Multi-object interaction"]
end

subgraph group_dataset["Interaction dataset"]
  node_cosmi_dataset[("COSMI dataset")]
end

node_text_prompt(("Text prompt"))

node_single_object_captures -->|"composes from"| node_diffusion_transformer
node_text_prompt -->|"conditions generation"| node_diffusion_transformer
node_diffusion_transformer -->|"uses"| node_object_slots
node_diffusion_transformer -->|"generates"| node_multi_object_interaction

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_single_object_captures,node_diffusion_transformer,node_object_slots,node_multi_object_interaction toneBlue
class node_cosmi_dataset toneAmber
class node_text_prompt toneIndigo
```

## Components

### Interaction synthesis

- **Single-object captures**
- **Diffusion transformer**
- **Weight-shared object slots**
- **Multi-object interaction**

### Interaction dataset

- **COSMI dataset**

### Other components

- **Text prompt**

## Connections

- Single-object captures → Diffusion transformer: composes from (evidence: `README.md`)
- Text prompt → Diffusion transformer: conditions generation (evidence: `README.md`)
- Diffusion transformer → Weight-shared object slots: uses (evidence: `README.md`)
- Diffusion transformer → Multi-object interaction: generates (evidence: `README.md`)
