Skip to content

u/CommunicationCalm166

In this archive from Sep 2022 to Dec 2023

5
posts
227
comments
18
media
1k
score

Top posts

Question about Graphics Card Compatibility, CUDA Version support, and Surplus Server Hardware...

EDIT 9/29/22: Textual Inversion is working on the Tesla M40. The original script from InvokeAI has some problems with multi-gpu support. Specifically the argument you add to specify the GPU to use (--gpus 1,) doesn't seem to work right for me. It's supposed to allow you to type in a comma-separated-...

4 points14 comments
Open on Reddit

Top comments

Yeah... The Good explanations are extremely technical, and the explanations that aren't extremely technical, aren't very good. I'll try though.

First, understand that Stable Diffusion works by generating random noise, and making changes to the noise one step at a time, to try and work towards an image consistent with the prompt.

Model: imagine it as a library of books. The title of the book is the "token" or one of the the keywords you type into the prompt to get your image. And the actual contents of the book include "Biases" or lists of features to look out for that are associated with the token, and "Weights" which are kinda like instructions on what to do to those features to make them more like the Token.

Analogy: SD generates a sheet of random noise, goes to the library, gets out the book that matches the first token in your prompt, and seeks out features in the random noise that the book says to look for, and then makes small changes according to the books instructions. It then repeats that process for the other keywords in the prompt, and then repeats this process over and over until the random noise is turned into an image.

So a Model file that's been fine-tuned using Dreambooth or similar, is like making a new library by copying all the books in the old one, but changing a few books, and their instructions to better suit whatever you trained it on.

An embedding, like Textual Inversion, is like adding an extra book to the existing library. It's not as "powerful" or thorough as going through and re-doing the whole library for your subject... But it's less resource hungry and doesn't involve a whole new library... Just a book.

A Hypernetwork is kinda like a card catalog. But instead of directing you to a particular book, the card catalog has a listing for each book in the library, and it has add-on instructions for each book. So instead of just going and getting the book and doing it's instructions... The computer goes to the card catalog, pulls the card for that book, goes and gets the book, and then follows both the books instructions and the card's instructions.

I think that's as plain as I can make it... And it kinda follows with how you'd use each one as well... A fine-tuned or Dreambooth model is the most accurate and flexible, while being the most space and resource-intensive. Textual Inversion embeddings are fairly limited, fairly specific, but the least resource intensive. And Hypernetworks are somewhat in-between, with the added caveat that it can be very unpredictable sometimes. (Instructions on top of instructions can get a bit wonky)

107 points

Lol

Call me a dastardly villain... But I've been wondering about replacing all the Torchvision random number calls in my SD scripts with calls to a hardware random number generator... Explore the world of pure latent space, mathematically un-reproducable one-of-a-kind images.

Just for the interest though, actual work developing the workflow should, I think, be shared with the community so we can keep this tech moving forward.

41 points

I'd like to hear an intellectual property attorney weigh in on that first question. Because there's a case to be made from his statement that he's disclaiming all rights to his contributions to the code. But it's also quite vague, and it wouldn't extend to the work of other contributors. So tricky question.

The second question is a definite "no." It's analogous to leaving your wallet on a table in a public place. Even if you left it intentionally, that doesn't give someone else the right to pick it up and take it home. That's been well established.

Basically, by being a stubborn techno-anarchist, Automatic has made it so that this community project can't be used for any legitimate purpose, or really, not safely used at all.

Shame. I really like Auto1111, I've recommended it to quite a few people. I figured the licensing would get hammered out over time. (Y'know, "Only one guy, working in his spare time, for free, can't do it all, etc. Etc.") But I guess they don't want to.

18 points

Subreddits

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.