File size: 4,457 Bytes
2a3d2c5
 
 
d5f4f86
2a3d2c5
 
 
d5f4f86
2a3d2c5
d5f4f86
2a3d2c5
 
 
 
d5f4f86
2a3d2c5
d5f4f86
2a3d2c5
d5f4f86
 
 
2a3d2c5
 
 
d5f4f86
2a3d2c5
d5f4f86
2a3d2c5
d5f4f86
2a3d2c5
d5f4f86
 
 
 
 
 
 
 
 
 
 
 
 
2a3d2c5
 
d5f4f86
 
 
 
 
 
 
 
 
 
2a3d2c5
d5f4f86
 
 
 
 
 
 
 
 
2a3d2c5
d5f4f86
2a3d2c5
d5f4f86
 
 
 
 
 
2a3d2c5
 
d5f4f86
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
---
license: mit
pipeline_tag: text-to-image
base_model: lllyasviel/sd-controlnet-canny
tags:
- ropedia-academy
- advanced
- gpu
- todo
- embodied-ai
- track-a
- track-b
---

# ControlNet β€” conditional diffusion  🚧 not trained yet

> Steer Stable Diffusion with a structure map (edges / pose / depth).

**Status β€” documented recipe (placeholder).** A production-grade pipeline from **[Ropedia Academy](https://chaoyue0307.github.io/ropedia-academy/)** for an advanced, GPU-heavy task. Everything below β€” base model, objective, dataset, config, the exact evaluation β€” is specified; the **weights / metrics / figures** land here automatically when you run the notebook on a GPU (one click below). Try the trained models live in the **[Ropedia demos Space](https://huggingface.co/spaces/cy0307/ropedia-demos)**.

## At a glance

| | |
|---|---|
| **Base model** | SD 1.5 / SDXL + a ControlNet (pretrained) |
| **Task** | structure-conditioned image generation |
| **Training objective** | Structure-conditioned generation (edges / depth / pose) β€” inference. |
| **Track** | LM Β· Language & multimodal |
| **Built on** | [huggingface/diffusers](https://huggingface.co/docs/diffusers/using-diffusers/controlnet) |
| **Notebook** | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ChaoYue0307/ropedia-academy/blob/main/notebooks/advanced/LM_controlnet.ipynb) |
| **Compute / storage / time** | GPU required β€” see the *Compute Β· storage Β· time* table in the notebook |

## Dataset
- **Source:** Your condition maps + prompts.

## Training config
GPU-scale β€” the notebook ships a **demo** profile (free Colab T4) and a **full** profile, with an exact *Compute Β· storage Β· time* table. Hyperparameters (optimizer, steps, batch, LoRA rank, …) are in the training cell.

## Evaluation results
⏳ **Pending** β€” run the notebook on a GPU to fill this in. This lab reports **condition fidelity (edge IoU / depth err) Β· CLIP score** on a held-out split (see its *Evaluate* cell).

## Inference example
No weights are published yet. After a GPU run, load the checkpoint/adapter the notebook saves (it also has a ready inference cell). Base model: **SD 1.5 / SDXL + a ControlNet (pretrained)**.

## How to fill this repo
1. Open the [notebook in Colab](https://colab.research.google.com/github/ChaoYue0307/ropedia-academy/blob/main/notebooks/advanced/LM_controlnet.ipynb) β†’ **Runtime β†’ GPU β†’ Run all** (runs the real pipeline).
2. Run its **Publish to the Hugging Face Hub** step (or `HfApi().upload_folder(...)`) β€” the checkpoint + `metrics.json` + figures replace this placeholder.

- [ ] Train / run on a GPU Β· [ ] upload weights Β· [ ] add `metrics.json` Β· [ ] add figures Β· [ ] swap in the real results card

## Limitations
Not yet trained β€” no numbers to report. The pipeline is **GPU-heavy** (see the compute table); on free Colab use the demo-scale settings. This is an educational, reproducible recipe, not a tuned production release.

## License
Code: **MIT** (this repository). The **base model** ([huggingface/diffusers](https://huggingface.co/docs/diffusers/using-diffusers/controlnet)) and **dataset** are each under their own licenses β€” check the upstream source before redistribution.

## Citation
```bibtex
@misc{ropedia_academy,
  title  = {Ropedia Academy: an interactive course on embodied & spatial AI},
  author = {Ropedia Academy},
  year   = {2026},
  howpublished = {\url{https://chaoyue0307.github.io/ropedia-academy/}}
}
```

**Method / original work:** Zhang et al., *ControlNet*, ICCV 2023.

## Related assets
- πŸš€ **Live demos:** [https://huggingface.co/spaces/cy0307/ropedia-demos](https://huggingface.co/spaces/cy0307/ropedia-demos)
- πŸ€— **All models + collection:** [https://huggingface.co/cy0307](https://huggingface.co/cy0307)
- πŸ“š **Course & all labs:** [https://chaoyue0307.github.io/ropedia-academy/](https://chaoyue0307.github.io/ropedia-academy/) Β· [Labs tab](https://chaoyue0307.github.io/ropedia-academy/labs)
- πŸ’» **Source / notebooks:** [github.com/ChaoYue0307/ropedia-academy](https://github.com/ChaoYue0307/ropedia-academy)
- πŸ”— **Relates to tracks:** A Β· B

---
*Documented placeholder in the [Ropedia Academy](https://chaoyue0307.github.io/ropedia-academy/) collection β€” train it on a GPU to publish the real model. Contributions welcome on [GitHub](https://github.com/ChaoYue0307/ropedia-academy).*