Instructions to use microsoft/Lens with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use microsoft/Lens with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("microsoft/Lens", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -38,7 +38,7 @@ pipeline_tag: text-to-image
|
|
| 38 |
</p>
|
| 39 |
|
| 40 |
<p>
|
| 41 |
-
<a href="https://arxiv.org/abs/
|
| 42 |
|
| 43 |
<a href="https://huggingface.co/microsoft/Lens"><img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97-Models-yellow" height="22" /></a>
|
| 44 |
|
|
@@ -401,7 +401,7 @@ python inference.py \
|
|
| 401 |
@article{zhao2026lens,
|
| 402 |
title = {Lens: Rethinking Training Efficiency for Foundational Text-to-Image Models},
|
| 403 |
author = {Guo, Baining and Luo, Chong and Chen, Dong and Chen, Dongdong and Wei, Fangyun and Li, Ji and Bao, Jianmin and Zhang, Jiawei and Zhao, Jinjing and Shi, Lei and Yang, Qinhong and Zhang, Sirui and Wu, Xiuyu and Feng, Xuelu and Lu, Yan and Dong, Yanchen and Yue, Yang and Wang, Yitong and Chen, Yunuo and Liang, Zhiyang and Wan, Ziyu},
|
| 404 |
-
journal = {arXiv preprint arXiv:
|
| 405 |
year = {2026}
|
| 406 |
}
|
| 407 |
```
|
|
|
|
| 38 |
</p>
|
| 39 |
|
| 40 |
<p>
|
| 41 |
+
<a href="https://arxiv.org/abs/2605.21573"><img alt="arXiv" src="https://img.shields.io/badge/arXiv-Paper-b31b1b?logo=arxiv&logoColor=white" height="22" /></a>
|
| 42 |
|
| 43 |
<a href="https://huggingface.co/microsoft/Lens"><img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97-Models-yellow" height="22" /></a>
|
| 44 |
|
|
|
|
| 401 |
@article{zhao2026lens,
|
| 402 |
title = {Lens: Rethinking Training Efficiency for Foundational Text-to-Image Models},
|
| 403 |
author = {Guo, Baining and Luo, Chong and Chen, Dong and Chen, Dongdong and Wei, Fangyun and Li, Ji and Bao, Jianmin and Zhang, Jiawei and Zhao, Jinjing and Shi, Lei and Yang, Qinhong and Zhang, Sirui and Wu, Xiuyu and Feng, Xuelu and Lu, Yan and Dong, Yanchen and Yue, Yang and Wang, Yitong and Chen, Yunuo and Liang, Zhiyang and Wan, Ziyu},
|
| 404 |
+
journal = {arXiv preprint arXiv:2605.21573},
|
| 405 |
year = {2026}
|
| 406 |
}
|
| 407 |
```
|