Skip to content

Instantly share code, notes, and snippets.

@mosluce
Created May 11, 2023 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mosluce/059866d2ae3577bf9cdb8e7e78209067 to your computer and use it in GitHub Desktop.
Save mosluce/059866d2ae3577bf9cdb8e7e78209067 to your computer and use it in GitHub Desktop.
import calendar
import time
from diffusers import StableDiffusionPipeline
current_GMT = time.gmtime()
time_stamp = calendar.timegm(current_GMT)
model_id = "gsdf/Counterfeit-V2.5"
pipe = StableDiffusionPipeline.from_pretrained(model_id)
pipe = pipe.to("mps")
prompt = "hite hair, puffy sleeves, outdoors, puffy short sleeves, bangs, on ground, full body, animal, white dress, sunlight, brown eyes, dappled sunlight, day, depth of field"
negative_prompt = "EasyNegative, extra fingers,fewer fingers"
image = pipe(
prompt,
negative_prompt=negative_prompt,
).images[0]
image.save(f"{time_stamp}.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment