Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -451,7 +451,7 @@ def infer(
|
|
451 |
).images[0]
|
452 |
else:
|
453 |
# Режим edge_detection ---------------------------------------------------------------------------------------------------------------------------
|
454 |
-
# prompt = "The smiling girl
|
455 |
# negative_prompt = "Blurred details, low resolution, bad anatomy, no face visible, poor image of a man's face, poor quality, artifacts, black and white image."
|
456 |
|
457 |
# seed = 8 # 1 8 12 14 18
|
@@ -483,11 +483,11 @@ def infer(
|
|
483 |
use_safetensors=True
|
484 |
).to(device)
|
485 |
|
486 |
-
pipe_controlnet.scheduler = UniPCMultistepScheduler.from_config(
|
487 |
|
488 |
image = pipe_controlnet(
|
489 |
-
|
490 |
-
|
491 |
image=cn_source_image,
|
492 |
control_image=control_image,
|
493 |
strength=strength_cn, # Коэфф. зашумления, чем больше, тем больше меняется результирующее изображение относитенльно исходного
|
@@ -598,7 +598,7 @@ examples = [
|
|
598 |
"A young man in anime style. The image is characterized by high definition and resolution. Handsome, thoughtful man, attentive eyes. The man is depicted in the foreground, close-up or in the middle. High-quality images of the face, eyes, nose, lips, hands and clothes. The background and background are blurred and indistinct. The play of light and shadow is visible on the face and clothes.",
|
599 |
"A man runs through the park against the background of trees. The man's entire figure, face, arms and legs are visible. Anime style. The best quality.",
|
600 |
"The smiling man. His face and hands are visible. Anime style. The best quality.",
|
601 |
-
"The smiling girl
|
602 |
"lego batman and robin",
|
603 |
]
|
604 |
|
|
|
451 |
).images[0]
|
452 |
else:
|
453 |
# Режим edge_detection ---------------------------------------------------------------------------------------------------------------------------
|
454 |
+
# prompt = "The smiling girl. Anime style. Best quality, high quality" # "the mona lisa"
|
455 |
# negative_prompt = "Blurred details, low resolution, bad anatomy, no face visible, poor image of a man's face, poor quality, artifacts, black and white image."
|
456 |
|
457 |
# seed = 8 # 1 8 12 14 18
|
|
|
483 |
use_safetensors=True
|
484 |
).to(device)
|
485 |
|
486 |
+
pipe_controlnet.scheduler = UniPCMultistepScheduler.from_config(pipe_controlnet.scheduler.config)
|
487 |
|
488 |
image = pipe_controlnet(
|
489 |
+
prompt=prompt,
|
490 |
+
negative_prompt=negative_prompt,
|
491 |
image=cn_source_image,
|
492 |
control_image=control_image,
|
493 |
strength=strength_cn, # Коэфф. зашумления, чем больше, тем больше меняется результирующее изображение относитенльно исходного
|
|
|
598 |
"A young man in anime style. The image is characterized by high definition and resolution. Handsome, thoughtful man, attentive eyes. The man is depicted in the foreground, close-up or in the middle. High-quality images of the face, eyes, nose, lips, hands and clothes. The background and background are blurred and indistinct. The play of light and shadow is visible on the face and clothes.",
|
599 |
"A man runs through the park against the background of trees. The man's entire figure, face, arms and legs are visible. Anime style. The best quality.",
|
600 |
"The smiling man. His face and hands are visible. Anime style. The best quality.",
|
601 |
+
"The smiling girl. Anime style. Best quality, high quality.",
|
602 |
"lego batman and robin",
|
603 |
]
|
604 |
|