Downloads · 30 days
3
20% of all-time downloads
MykosX/karla-photo-sd
karla-photo-sd is a text-to-image model from MykosX. Use it when you need an image from a text prompt. It is set up for diffusers.
MykosX/karla-photo-sd is a Stable Diffusion model that can be used both for: - text-to-image: generates quite good photo images, may generate bad faces for people far from viewer - image-to-image: tends to improve the…
Downloads · 30 days
3
20% of all-time downloads
All-time downloads
15
Public
Parameters
860M
2.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.1 GB · 100%
From the Hugging Face model README
MykosX/karla-photo-sd is a Stable Diffusion model that can be used both for:
** using these defaults unless specified:
<table> <tr> <th>Setting</th> <th>Default value</th> </tr> <tr> <td>prompt (landscape)</td> <td>landscape image, a boy and girl having fun on the beach</td> </tr> <tr> <td>prompt (portrait)</td> <td>portrait image, a girl in a nice dress posing for a photo</td> </tr> <tr> <td>negative prompt</td> <td>deformed iris, deformed pupils, bad anatomy, cloned face, extra arms, extra legs, missing fingers, too many fingers</td> </tr> <tr> <td>size (landscape)</td> <td>1024 x 768</td> </tr> <tr> <td>size (portrait)</td> <td> 768 x 1024</td> </tr> <tr> <td>seed</td> <td>300</td> </tr> <tr> <td>guidance scale</td> <td>12.0</td> </tr> <tr> <td>strength</td> <td>0.5</td> </tr> <tr> <td>inference steps</td> <td>30</td> </tr> </table>For more general information on how to run text-to-image models with 🧨 Diffusers, see the docs.
pip install diffusers transformers accelerate
import torch
from diffusers import AutoPipelineForText2Image
pipe = AutoPipelineForText2Image.from_pretrained('MykosX/karla-photo-sd', torch_dtype=torch.float32)
pipe = pipe.to("cpu")
prompt = "portrait image, a girl in a nice dress posing for a photo"
image = pipe(prompt).images[0]
image.save("./images/text-to-image.png")
import torch
from diffusers import AutoPipelineForImage2Image
from PIL import Image
pipe = AutoPipelineForImage2Image.from_pretrained('MykosX/karla-photo-sd', torch_dtype=torch.float32)
pipe = pipe.to("cpu")
base_image = Image.open("./images/girl-posing-photo-(original).jpg")
prompt = "portrait image, a girl in a nice dress posing for a photo"
image = pipe(prompt, image=base_image).images[0]
image.save("./images/image-to-image.png")
Play with the model and don't hesitate to show off