Skip to content

u/promptengineer

In this archive from Sep 2022 to Nov 2022

2
posts
36
comments
1
media
84
score

just run

pip install stability-sdk

that will install the library into python you can use it.

set key in environment, add it to .bash_profile or run this in terminal

export STABILITY_KEY =your_api_key_here

run in terminal

python3 -m stability_sdk.client -W 512 -H 512 "A stunning house."

or import it into a python script

1 points

stable-diffusion-v1-4 Resumed from stable-diffusion-v1-2 - 225,000 steps at resolution 512x512 on "laion-aesthetics v2 5+" and 10 % dropping of the text-conditioning to improve classifier-free guidance sampling.

stable-diffusion-v1-5 Resumed from stable-diffusion-v1-2 - 595,000 steps at resolution 512x512 on "laion-aesthetics v2 5+" and 10 % dropping of the text-conditioning to improve classifier-free guidance sampling.

5 points

in cryptographic algorithms which create identical hash for different content is called collision.

we can use same analogy.

same prompt, and other params with same seed produces exact same image pixel perfect. same prompt just changing seeds can generate millions and billions of images.

different prompts with different seeds and other parameters generating exactly same image should be extremely rare, but we don’t have any mathematical proof yet that it is impossible .

but I have seen some scenarios where after lot of steps , image loosing details and or get tinted into some colour patches like with perlin noise.

2 points

this version only has diffusers model from huggingface. not under active development for over a month, there are about 10 pull requests pending including mine for embedding prompt metadata in png file.

this is a rewritten version of the code for openvino, but the code is small and readable. I could play with the code and make my own changes fairly quickly

1 points

mine is a intel mac, you can install openvino first

https://docs.openvino.ai/2021.2/openvino_docs_install_guides_installing_openvino_macos.html

then install this version of SD optimised for intel chips with open vino

https://github.com/bes-dev/stable_diffusion.openvino

it takes about 4 minutes per image on my i9 , on a i7 or i5 it may take 5-8 minutes per image.

though I used it for over a month but then started using paid and free API’s, they generate images in about 10 seconds.

speed is a big feature and now only use local version for NSFW or certain prompts which API’s restrict .

1 points

current stability model has no concept of text or font generation. it knows only pixels and how to improve them.

even if we train with million text images with text tagging, it will not generate reliably.

my understanding is we have connected two different models at hip, one to understand text prompt and generate vectors. another model trained with images and tags . Seed is used to generate perlin noise and improvement is made in each iteration based on the vector understanding of the prompt.

2 points

pixel perfect copy would be impossible, it stores less than 1% of data of training image at 512x512 pixel across billion plus images in the 4gb dataset.

faces and styles which are created very well by stable diffusion like greg rutkowski, Scarlett Johansson is because they were in dozens if not on hundreds of training images.

also prompt length is limited to 72 token about 500 characters per image. does not give enough fidelity describing every object with high precision .

something close may be achievable with many generations of content with in painting and img2img.

3 points

the seed is used to generate a special type of noise image called perlin noise. this is very different from random noise generated.

in stable diffusion each iteration from the noise slight improvement is made to come up with the image.

sequential seed data generating similar perlin noise is not impossible but should be pretty rare.

https://en.m.wikipedia.org/wiki/Perlin_noise

I wrote a script to generate a animation of how images emerge after each iteration, so did see several seed data and resulting perlin noise image generated .

I also tried generating my own noise images to try img2img, in painting, fonts/texts, results were not as good

2 points

intel uhd graphics card peak performance is far less than 1 teraflop and is not considered as GPU . nvidia 4090 TI has over 100 teraflops of performance.

nvidia 4090 TI has 80 billion transistors, intels newly launched Arc ACM-G10 has 7.2 billion transistors.

you can run on your CPU intel or AMD will take several minutes per image generation

2 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.