Instructions to use microsoft/Lens-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use microsoft/Lens-Base 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-Base", 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
- 2.98 MB xet
- 258 Bytes
- 2.88 MB xet
- 241 Bytes
- 2.77 MB xet
- 272 Bytes
- 2.64 MB xet
- 239 Bytes
- 3.45 MB xet
- 261 Bytes
- 3.13 MB xet
- 268 Bytes
- 2.71 MB xet
- 221 Bytes
- 2.98 MB xet
- 294 Bytes
- 3.04 MB xet
- 201 Bytes
- 2.77 MB xet
- 244 Bytes
- 3.26 MB xet
- 293 Bytes
- 2.43 MB xet
- 256 Bytes
- 2.41 MB xet
- 280 Bytes
- 3.35 MB xet
- 246 Bytes
- 2.64 MB xet
- 293 Bytes
- 2.63 MB xet
- 243 Bytes
- 2.87 MB xet
- 235 Bytes
- 2.64 MB xet
- 214 Bytes
- 3.49 MB xet
- 249 Bytes
- 3.62 MB xet
- 257 Bytes
- 3.27 MB xet
- 256 Bytes
- 2.83 MB xet
- 249 Bytes
- 2.76 MB xet
- 242 Bytes
- 3.23 MB xet
- 260 Bytes
- 2.67 MB xet
- 270 Bytes