Skip to content

Instantly share code, notes, and snippets.

@victormurcia
Created January 12, 2023 01:24
Show Gist options
  • Save victormurcia/95ad0bd4d32062602103c48ef208c3f2 to your computer and use it in GitHub Desktop.
Save victormurcia/95ad0bd4d32062602103c48ef208c3f2 to your computer and use it in GitHub Desktop.
create art using stable AI
remove_safety = False
num_images = 4
if remove_safety:
negative_prompt = None
else:
negative_prompt = "nude, naked"
images = pipe(
prompt,
height = image_length,
width = image_length,
num_inference_steps = 25,
guidance_scale = 9,
num_images_per_prompt = num_images,
negative_prompt = negative_prompt,
).images
media.show_images(images)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment