Update inference.py
Browse files- inference.py +12 -20
inference.py
CHANGED
|
@@ -31,26 +31,18 @@ CFG = 9
|
|
| 31 |
resolution = 1024
|
| 32 |
negative_prompts = "worst quality, low quality, low res, blurry, distortion, watermark, logo, signature, text, jpeg artifacts, signature, sketch, duplicate, ugly, identifying mark"
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
# A digital painting of an evil geisha in a bar.
|
| 47 |
-
# Digital painting of a furry deer character on FurAffinity.
|
| 48 |
-
# A highly detailed goddess portrait with a focus on the eyes.
|
| 49 |
-
# A cute young demon princess in a forest, depicted in digital painting.
|
| 50 |
-
# A red-haired queen wearing a green and black dress and veil is depicted in an intricate and elegant digital painting.
|
| 51 |
-
prompt = "A racoon wearing a suit smoking a cigar in the style of James Gurney."
|
| 52 |
-
|
| 53 |
-
image = pipe(prompt=prompt,negative_prompt=negative_prompts,height=resolution,width=resolution,guidance_scale=CFG,num_inference_steps=steps).images[0]
|
| 54 |
|
| 55 |
output_dir = "./output"
|
| 56 |
os.makedirs(output_dir, exist_ok=True)
|
|
|
|
| 31 |
resolution = 1024
|
| 32 |
negative_prompts = "worst quality, low quality, low res, blurry, distortion, watermark, logo, signature, text, jpeg artifacts, signature, sketch, duplicate, ugly, identifying mark"
|
| 33 |
|
| 34 |
+
prompts = [
|
| 35 |
+
"Two actors are posing for a pictur with one wearing a black and white face paint.",
|
| 36 |
+
"A large body of water with a rock in the middle and mountains in the background.",
|
| 37 |
+
"A white and blue coffee mug with a picture of a man on it.",
|
| 38 |
+
"A statue of a man with a crown on his head.",
|
| 39 |
+
"A man in a yellow wet suit is holding a big black dog in the water.",
|
| 40 |
+
"A white table with a vase of flowers and a cup of coffee on top of it.",
|
| 41 |
+
"A woman stands on a dock in the fog.",
|
| 42 |
+
"A woman is standing next to a picture of another woman."
|
| 43 |
+
]
|
| 44 |
+
|
| 45 |
+
image = pipe(prompt=prompts[0],negative_prompt=negative_prompts,height=resolution,width=resolution,guidance_scale=CFG,num_inference_steps=steps).images[0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
output_dir = "./output"
|
| 48 |
os.makedirs(output_dir, exist_ok=True)
|