Spaces:
Sleeping
Sleeping
SD based Avatar chaging parameters
Browse files
app.py
CHANGED
|
@@ -148,7 +148,7 @@ def create_avatar(img: Image.Image) -> Image.Image:
|
|
| 148 |
# Stylize with SD prompt
|
| 149 |
prompt = "highly detailed, digital portrait, professional lighting, cinematic style, artistic AI avatar"
|
| 150 |
with torch.autocast("cuda"):
|
| 151 |
-
result = sd_pipe(prompt=prompt, image=img_resized, strength=0.
|
| 152 |
|
| 153 |
avatar = result.images[0]
|
| 154 |
|
|
|
|
| 148 |
# Stylize with SD prompt
|
| 149 |
prompt = "highly detailed, digital portrait, professional lighting, cinematic style, artistic AI avatar"
|
| 150 |
with torch.autocast("cuda"):
|
| 151 |
+
result = sd_pipe(prompt=prompt, image=img_resized, strength=0.5, guidance_scale=5.0)
|
| 152 |
|
| 153 |
avatar = result.images[0]
|
| 154 |
|