Downloads · 30 days
19
3% of all-time downloads
samim2024/text-to-image
text-to-image is a text-to-image model from samim2024. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
Downloads · 30 days
19
3% of all-time downloads
All-time downloads
660
Public
Repo size
5.2 GB
Likes
0
Public
Click a slice to open those files.
.bin5.2 GB · 100%
From the Hugging Face model README

Introducing the pretrained Model from the base Model called stabilityai/stable-diffusion-2, which is very fast and production deployable. It is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input.
pip install torch diffusers
from diffusers import StableDiffusionPipeline
import torch
model_id = "samim2024/text-to-image"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "a photo of an astronaut riding a horse on mars"
image = pipe(prompt).images[0]
image.save("astronaut_rides_horse.png")
The model is intended for research purposes only. Possible research areas and tasks include
Excluded uses are described below.
The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes.
The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to: