yujincheng08
commited on
Commit
•
196525a
1
Parent(s):
8e10ed6
Update README.md
Browse files
README.md
CHANGED
@@ -6,7 +6,7 @@ Usage:
|
|
6 |
```python
|
7 |
from diffusers import PixArtAlphaPipeline
|
8 |
import torch
|
9 |
-
pipe = PixArtAlphaPipeline.from_pretrained("
|
10 |
pipe = pipe.to("cuda")
|
11 |
pipe.enable_attention_slicing()
|
12 |
prompt = "A alpaca made of colorful building blocks, cyberpunk"
|
|
|
6 |
```python
|
7 |
from diffusers import PixArtAlphaPipeline
|
8 |
import torch
|
9 |
+
pipe = PixArtAlphaPipeline.from_pretrained("PixArt-alpha/PixArt-XL-2-1024-MS", torch_dtype=torch.float16)
|
10 |
pipe = pipe.to("cuda")
|
11 |
pipe.enable_attention_slicing()
|
12 |
prompt = "A alpaca made of colorful building blocks, cyberpunk"
|