Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!pip install -U -qq git+https://github.com/huggingface/diffusers.git -q
|
2 |
+
!pip install -qq accelerate transformers ftfy -q
|
3 |
+
|
4 |
+
!pip install transformers -q
|
5 |
+
|
6 |
+
from diffusers import StableDiffusionPipeline
|
7 |
+
import torch
|
8 |
+
|
9 |
+
from diffusers import StableDiffusionPipeline
|
10 |
+
import torch
|
11 |
+
|
12 |
+
model = "oraul/Stability_CelebsHAQ_v1"
|
13 |
+
pipeline = StableDiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16).to("cuda")
|
14 |
+
|
15 |
+
prompt = "how the personal <batch2_proj_11> was looked at the age of 2 years" # here, batch2_proj_11 is the placeholder that identifies unique style in the model. please add it into the angel brackets
|
16 |
+
image = pipeline(prompt).images[0]
|
17 |
+
|
18 |
+
image
|