File size: 893 Bytes
faa48c0
 
e908767
 
 
 
 
 
faa48c0
e908767
36df7de
e908767
36df7de
e908767
36df7de
 
 
 
 
 
 
 
 
 
 
 
 
 
e908767
36df7de
 
 
 
 
e908767
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
---
license: openrail
datasets:
- allenai/objaverse
library_name: diffusers
pipeline_tag: image-to-image
tags:
- art
---

Recommended version of `diffusers` is `0.20.2` with `torch` `2`.

Usage Example:
```python
import torch
import requests
from PIL import Image
from diffusers import DiffusionPipeline, EulerAncestralDiscreteScheduler

# Load the pipeline
pipeline = DiffusionPipeline.from_pretrained(
    "sudo-ai/zero123plus-v1.1", custom_pipeline="sudo-ai/zero123plus-pipeline",
    torch_dtype=torch.float16
)
# Feel free to tune the scheduler
pipeline.scheduler = EulerAncestralDiscreteScheduler.from_config(
    pipeline.scheduler.config, timestep_spacing='trailing'
)
pipeline.to('cuda:0')
# Run the pipeline
cond = Image.open(requests.get("https://d.skis.ltd/nrp/sample-data/lysol.png", stream=True).raw)
result = pipeline(cond).images[0]
result.show()
result.save("output.png")
```