Created
May 11, 2023 12:59
-
-
Save mosluce/059866d2ae3577bf9cdb8e7e78209067 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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