Instructions to use valhalla/t2i-depth-midas with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use valhalla/t2i-depth-midas with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("valhalla/t2i-depth-midas", 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
Commit History
-
36.5k
259bf7d -
36k
5843b59 -
35.5k
726d80d -
33k
4b04432 -
30k
02baf96
-
22k
034c824 -
21k
2b37acb -
20k
1157606 -
19k
c77a61c -
17k
b98f4e3 -
16k
8fcf89e -
15k
6788620 -
14k
dc8c5da -
12k
dcf32df
-
initial commit
ef73276