Skip to content

u/bloc97

In this archive from Sep 2020 to Oct 2024

2
posts
59
comments
4
media
1k
score

More data efficient, because while this model generates the final rendered image, it also contains much more data about the state of the game implicitly in its activations. If trained enough, this neural network will know about the game much better than any human, and could be used to develop winning strategies unthinkable to most. Now imagine what that would entail if you trained this type of model on the real world.

3 points

Here is my attempt as a very simplified explanation:

1- A checkpoint is just the model at a certain training stage. Merging the checkpoints by averaging or mixing the weights might yield better results.

4- Dreambooth is a method to fine-tune a network. Basically instead of only training on your new images, it also trains using the original stablediffusion model such that your new model does not "forget" outputs that are not in your dataset. It drastically improves results when your dataset is very small.

3- A hypernetwork is a smaller network that is added on top (or wrapped around) the stablediffusion model, and during training, only this network is backpropagated through, which lets you train with less VRAM. The results and effects are usually less pronounced than 1 and 4 though...

2- Embeddings (from textual inversion) are small vectors (list of numbers) that represent a concept. They are obtained by finding which text embeddings produce similar images to what you want. This text embedding can then be used instead of a word in a prompt.

8 points

The only people it bothers are those who want to turn his code, or at least parts of code attached his project, into a product.

That's a bad take in my opinion. You can look at it this way, all open source projects are built on previous code, for example, Stable Diffusion depends on pytorch, which depends on python/pip and the linux kernel. Essentially SD exists thanks to the previous hard work of countless developers. Now as the webui is closed source, no future project can take advantage of what is being programmed right now. It's effectively cutting off any serious development. Fortunately there are other properly licensed webuis and APIs.

4 points

I know the FOSS community can be sometimes "elitist" when judging a project's license (e.g. the endless GPL vs LGPL war), but there's nothing wrong with offering a great program for free, I can't deny that he and all the contributors are doing great work here for free. But I think we should still be careful and correct people from calling it "open source" because it is in fact not. It can give a lot of developers the wrong initial impression and can lead to some being tricked into contributing to what they think is a open source project.

9 points

The problem with closed source is not in the product itself, but it prevents any derivatives of it and forbids future improvements if the maintainer abandons it. In other words, no serious developer will use that repo's code in any other serious project unless he/she wants to risk getting a lawsuit, and if the project gets abandoned no one will be able to use any of the existing code.

So, unless he changes the license, that repo is not at all considered open source, but simply "freeware".

12 points

This a very interesting observation! I suspect that using "negative prompts" instead of an empty string both "lengthens" and adds more meaning to the CFG vector used in classifier-free guidance. Instead of pushing "nonsense" towards our prompt, we are pushing the negative prompts (which can actually impact the final image) towards our intended prompt.

As you noticed, the inverse of a "blue car" is a bunch of nonsense images, then it might be good to put a bunch of nonsense words in the negative prompts.

5 points

Technically yes, but most likely speed will be the main issue as you can trade speed for vram (eg. running a part of the model). There already exists custom implementations of stablediffusion that only require very little VRAM, but run slower.

1 points

To give some context for those who might have difficulties in understanding the paper: This new method uses a common ML concept called "knowledge distillation", where a large teacher network (in our case it would be the Stable Diffusion v1.4 model) teaches a smaller network (we would need to create it). In our case, directly training the smaller network is intractable because the classifier-free guidance can't be readily translated to a loss function.

TL;DR: Basically in the paper they use another network to learn the output of a diffusion model.

There's a caveat here though; While sampling this student network is very quick, training it is more difficult and slow than training the teacher network. It would be up to the team at SD or some other team that have access to a large amount of compute in order to pull this off. Most people in the community and independent researchers would not be able to train such a network in a reasonable amount of time.

8 points

Those are all great ideas! The main problem right now is that stablediffusion "pays more attention" to the center of the image compared to the outer edges. If you try to inpaint a very small square (64x64px) in the center of the image, it would give a pretty good result, but if you tried the same by taking out let's say a 64 pixel wide column from the left side, the "outpainting" fails most of the time because SD ignores pretty much the rest of the image and focuses on the noise instead... (can't blame it, it was trained to do so with just a denoising objective)

I think DALL-E 2 "outpainting" uses a model that was trained specifically to enforce continuity on the generated part of the image, either by using some kind of loss on top of the denoising objective or by conditioning on a part of the image given as input (just like how super-resolution diffusion models are conditioned on the low resolution image given as input), most likely a combination of the two...

3 points

Something's missing conceptually, if you tried outpainting you can see that it requires strong user supervision as most of the results are not that good.

Edit: to put it in perspective, it would not be enough if we can achieve good results for even 75% of the time, as a 8x8 mosaic has 64 images, and that would mean a probability of success of 0.7564 = 0.0000001%.

6 points

I mean, some specific use cases such as animating faces, image fly through and depth map generation for novel view synthesis already exists. To generate video we probably need some kind of new diffusion architecture that can generate temporally coherent images, of which the data can be taken from YouTube, wiki commons, etc. But I don't think our consumer GPUs are powerful enough to run such a model.

2 points

Awesome, I can't wait to combine this with cross attention control, this will actually allow people to edit an image however they want at any diffusion strengths! No more the problem of img2img ignoring the initial image at high strengths. I will take a look at the code tomorrow...

Also I believe (and hope) that inpainting with this method with cross attention control would yield far superior results than simply masking out parts of an image and adding random noise. What a time to be alive!

49 points

Great, that's exactly what the authors observed in the DDIM paper! If you don't mind, you are free to setup a quick demo with maybe one or two examples and push it to the github, that would be super cool for everyone to use!

Edit: And for the reason behind why 50 steps doesn't work as well, I guess maybe is that the forward process uses many tricks for acceleration while the inverse process was pretty much neglected and was not optimized (remember the first paper on diffusion models actually needed 1000 sampling steps too for good results), so you actually need to perform the diffusion correctly, for now (eg. 1000 steps).

4 points

This might be how they did inversion in the DDIM paper, but I couldn't find the exact method except a vague description of the inverse process "by running the sampler backwards" just like you described.

Edit to quote the paper: "...can encode from x0 to xT (reverse of Eq. (14)) and reconstruct x0 from the resulting xT (forward of Eq. (14))", page 9 section 5.4

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