Skip to content

u/hardmaru

In this archive from Sep 2022 to Aug 2024

65
posts
26
comments
66
media
19k
score

Yeah, I think the results using notebooks + diffusers don't differ too much from simply using the text-to-image scripts supplied by Stable Diffusion's GitHub. There could be small differences in default sampling methods and diffusion steps though (but nothing too drastically different).

1 points

Full prompt: "Anime scene of Princess Diana in Hong Kong, Studio Ghibli, high quality, trending on artstation."

I sampled these using Huggingface's diffusers library (which works with Stable Diffusion), using basically its default settings.

Edited for more info:

The diffusers python library was created by Huggingface to allow people to easily try different diffusion models using a consistent set of programming abstractions. I've been playing around with this, rather than simply using the scripts provided by Stable Diffusion, since we can produce latent space videos and mix in other modalities.

But for this image, we simply used diffusers + SD to sample 4 images. The entire notebook is really simple, which was used to produce this. Here is the entirety of the code:


from diffusers import StableDiffusionPipeline

from torch import autocast

from PIL import Image

pipe = StableDiffusionPipeline.from_pretrained("/home/PATH_TO_SD_DIFFUSERS/stable-diffusion-v1-3-diffusers", use_auth_token=True) 

orig_prompt = "Anime scene of Princess Diana in Hong Kong, Studio Ghibli, high quality, trending on artstation."

num_cols = 2

num_rows = 2

prompt = [orig_prompt] * num_cols * num_rows

with autocast("cuda"):

  images = pipe(prompt, guidance_scale=7.5)["sample"]

17 points

The original prompt is stolen from r/WeirdDalle (https://www.reddit.com/r/weirddalle/comments/x7jxgo/nintendo_switchblade/). You can compare the results, with SD's quality noticeably higher.

These images were actually produced first using Craiyon's DalleMini (using "Nintendo Switchblade" as the prompt), and fed into SD's img2img to finetune for 150 diffusion steps using the same prompt.

9 points

Trying out Stable Diffusion 1.5

Prompt: Anime scene of Arnold Schwarzenegger as Terminator on a red motorcycle in Akira, by Katsuhiro Otomo, Cyberpunk Hong Kong, sharp focus, smooth, key anime visual, trending on Artstation, very detailed.

Random seeds.

cfgScale: Tried 7, 7, 8, 12.

k_lms, Tried 50 and 100 steps.

15 points

Hi!

For the img2img.py command line script (which comes with SD), I used a 512x512 input image of the original Fountain Urinal (the top left), and the prompt "Futuristic shiny stainless steel cyber urinal designed by Tesla, electric powered, award winning design." to produce the top right image.

I also used 150 diffusion steps.

For the bottom two, I replaced Tesla with Apple.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←orβ†’
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.