Skip to content

u/LetterRip

In this archive from Sep 2022 to Feb 2026

6
posts
250
comments
1
media
1.2k
score

This is obviously emergent tech, but I'm wondering if it is implemented through the same pytorch stack than Stable Diffusion.

Yes it uses pytorch (hence the 'pt' extension to the file). I think you might not understand these words?

Pytorch is a neural network frame work. Diffusion is a generative neural network.

What you describe is a deepfake workflow.

Nope,

Deepfakes rely on a type of neural network called an autoencoder.[5][61] These consist of an encoder, which reduces an image to a lower dimensional latent space, and a decoder, which reconstructs the image from the latent representation.[62] Deepfakes utilize this architecture by having a universal encoder which encodes a person in to the latent space.[63] The latent representation contains key features about their facial features and body posture. This can then be decoded with a model trained specifically for the target.[5] This means the target's detailed information will be superimposed on the underlying facial and body features of the original video, represented in the latent space.[5]

A popular upgrade to this architecture attaches a generative adversarial network to the decoder.[63] A GAN trains a generator, in this case the decoder, and a discriminator in an adversarial relationship.[63] The generator creates new images from the latent representation of the source material, while the discriminator attempts to determine whether or not the image is generated.[63] This causes the generator to create images that mimic reality extremely well as any defects would be caught by the discriminator.[64] Both algorithms improve constantly in a zero sum game.[63] This makes deepfakes difficult to combat as they are constantly evolving; any time a defect is determined, it can be corrected.[64]

https://en.wikipedia.org/wiki/Deepfake

Optical flow is a older technology, used for match moving (having special effects be in the proper 3d location of a video).

https://en.wikipedia.org/wiki/Optical_flow

3 points

do you have any tutorials/links for those things? definitely something I'd be interested in learning about

You likely need Linux and a fair amount of ram to get AITemplate and DeepSpeed MII working,

AI Template

https://github.com/facebookincubator/AITemplate

See the demo

https://github.com/facebookincubator/AITemplate/tree/main/examples/05_stable_diffusion

DeepSpeed MII

https://github.com/microsoft/DeepSpeed-MII

See txt2img-example.py

https://github.com/microsoft/DeepSpeed-MII/tree/main/examples/local

For xformers

https://github.com/facebookresearch/xformers

For stable diffusion with TensorRT

https://www.photoroom.com/tech/stable-diffusion-25-percent-faster-and-save-seconds/

For tracing, etc. see the tutorial here

https://huggingface.co/docs/diffusers/optimization/fp16

3 points

I see 4chan's clown attorney has arrived, fresh from a binge of prelaw.

Can't find a flaw in my reasoning so go for the adhominem. If you want to talk about copyright law you should at least learn the basics - ie learn what theft is, learn what a copyright violation is.

You were ' spout[ing] nonsense when you've not got the faintest clue what's going on' as you accused someone else, and got called on it.

8 points

This is the license that dictates the copyright of the output of the Stable Diffusion source model(s) and all derivatives. It is an infectious "GPL"-like license.

Again, the model itself might not be copyrightable under US copyright law.

https://www.hklaw.com/en/insights/publications/2017/04/separating-art-from-function-supreme-court-creates

1 points

Yeah... the base of my question was the second part... I know it's pretty much impossible task, but I'm curious about the situation if that's done and he is the only one left.

You'd have to/want to do a clean room reimplementation of the parts of the code that were written by Automatic1111. So 1 person describes the function specifications, then another person writes them.

In reality though, you'd just have someone code it from scratch without referencing his code at all. A from scratch design.

2 points

There are legal concepts like 'implied rights' and 'promissory estopel'. There are almost certainly implied rights granted, and you almost certainly aren't violating his copyright by downloading and using it. Who is violating codeformers copyright is a bit more murky - anyone who distributes their code without their license is potentially violating their copyright, but just receiving their code without the license likely isn't a violation by you.

If you check out the repositories when installing you also have the license of codeformers when you recieve it. So it may be that an installed distribution is no longer out of compliance.

Anyway, copyright is complicated :)

0 points

The output has a license from the creators of the model that is irrevocable and must be carried forward to all derivatives of the model. So the answer is in the original compVis repository.

The model quite likely can't have copyright under US law. It is 'functional' and copyright only applies to 'creative aspects' of a work.

1 points

That means nobody can use, copy, distribute, or modify their contributions – and that “nobody” includes you.

If this were the case, you would be violating the copyright of any webpage you access. Publicly distributing a copy, such as via uploading to github almost certainly gives you some implied rights to access and use the copyrighted work. Also their is arguably an implied right to make derivative works.

The problem with implied rights is that they aren't well defined and thus there is some risk. The real risk is eventual loss of access to the work if it is pulled from github (either voluntarily or via lawsuit).

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