Commit
·
af2f56c
1
Parent(s):
93422c1
Update README.md
Browse files
README.md
CHANGED
@@ -52,6 +52,25 @@ Advanced Version: Upgraded from the base version of Imagine AI Art Generator
|
|
52 |
|
53 |
- In each of these uses, Imagine V4.1 offers not just a technological solution but also a new lens through which creativity and art can be explored and expanded.
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
### Out-of-Scope Use
|
57 |
|
|
|
52 |
|
53 |
- In each of these uses, Imagine V4.1 offers not just a technological solution but also a new lens through which creativity and art can be explored and expanded.
|
54 |
|
55 |
+
### Diffusers
|
56 |
+
|
57 |
+
```
|
58 |
+
pip install diffusers transformers accelerate --upgrade
|
59 |
+
```
|
60 |
+
|
61 |
+
- **Text-to-image**:
|
62 |
+
|
63 |
+
```py
|
64 |
+
from diffusers import AutoPipelineForText2Image
|
65 |
+
import torch
|
66 |
+
|
67 |
+
pipe = AutoPipelineForText2Image.from_pretrained("vyroAI/ImagineV4.1", torch_dtype=torch.float16, variant="fp16")
|
68 |
+
pipe.to("cuda")
|
69 |
+
|
70 |
+
prompt = "A cinematic shot of a baby panda wearing an italian priest robe."
|
71 |
+
|
72 |
+
image = pipe(prompt=prompt, num_inference_steps=30).images[0]
|
73 |
+
```
|
74 |
|
75 |
### Out-of-Scope Use
|
76 |
|