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]
What are the advantages of this vs DeepSpeed? It would be nice to see the way you are setting up DeepSpeed in your comparison - since it isn't clear what the configuration is you are comparing against.
Also is this useful for inference as well? If so would be useful to see inference performance.
Multiple linear layers trains faster and easier. You can then collapse it to a single layer after you finish training. See "ExpandNets: Linear Over-parameterization to Train Compact Convolutional Networks"
you could calculate probably - take the tokens from the base model, and calculate the length and direction difference for each tokens vector, and the token that is the most different is likely your prompt trigger.
And of course it is clear those works fall under copyright and thus the SD license here. The gray is how much "input' is required to define it as a created original work.
Some aspects of these works fall under copyright and the 'work as a whole' does. It is unclear whether specific isolated aspects would though.
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.
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.
In the US copyright differentiates between 'functional' and 'creative' aspects of a work. Only creative aspects of a work are copyrightable, not the functional aspects. So depending on how copilot does copying, it might not be a copyright violation.
But then you should really be questioning if you should be using Stable at all since none of the copyright images they used to build the model are properly licensed either.
Model creation was almost certainly transformative and thus not a copyright violation under existing law.
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.
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.
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.
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).
Software isn't 'stolen' - it can have its copyright violated. If you don't know the difference between copyright violation and theft. Then you really don't belong in this conversation.
Copying isn't necessarily a copyright violation - there is 'deminimus' and 'interoperability' exemptions to copyright law.
.5 MWh or so. About 15 days worth of electricity for a typical US household.
None of those are it, they are all much older than 2509 (2509 was released today...)
https://github.com/google-research/frame-interpolation
It is probably displaying GB, and you are used to seeing GiB (also often shown as GB)
2.13 GB == 1.99 GiB (GB is base 1000 GiB is base 1024) (The 2.13 is probably 2.134 rounded down, and the 1.99 is rounded up from 1.987)
Yep, way too long of a thumb, way too short fingers, the hands lack tendons, the knuckles are weird, the fingernails and tips are messed up.
Excellent explanation
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.
Nope,
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
Pretty sure it is just optical flow automatic matching (thin plate spline), they aren't doing any animation.
https://arxiv.org/abs/2203.14367
https://studentsxstudents.com/the-future-of-image-animation-thin-plate-spline-motion-90e6cf807ea0?gi=643589a1b820
And this is the model used
https://cloud.tsinghua.edu.cn/f/da8d61d012014b12a9e4/?dl=1
Interesting facial expressions video here,
https://www.youtube.com/watch?v=X1osDan-RZQ
What are the advantages of this vs DeepSpeed? It would be nice to see the way you are setting up DeepSpeed in your comparison - since it isn't clear what the configuration is you are comparing against.
Also is this useful for inference as well? If so would be useful to see inference performance.
Multiple linear layers trains faster and easier. You can then collapse it to a single layer after you finish training. See "ExpandNets: Linear Over-parameterization to Train Compact Convolutional Networks"
https://arxiv.org/abs/1811.10495
That might not have been the intent, but there is a rational reason to do so.
you could calculate probably - take the tokens from the base model, and calculate the length and direction difference for each tokens vector, and the token that is the most different is likely your prompt trigger.
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
This varies a ton by setup, the CUDA install version and torch version, xformers, opt-channelslast, TensorRT, other optimizations (such as tracing).
Can really get things fast using DeepSpeed MII or AITemplates.
Some aspects of these works fall under copyright and the 'work as a whole' does. It is unclear whether specific isolated aspects would though.
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.
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
In the US copyright differentiates between 'functional' and 'creative' aspects of a work. Only creative aspects of a work are copyrightable, not the functional aspects. So depending on how copilot does copying, it might not be a copyright violation.
Model creation was almost certainly transformative and thus not a copyright violation under existing law.
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.
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 :)
The model quite likely can't have copyright under US law. It is 'functional' and copyright only applies to 'creative aspects' of a work.
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).
You are wrong. You can copy GPL (v2) code and make local modifications and your modifications do not have to be GPLed.
If you distribute the GPLed code with your modifications, you might be violating the GPLed code, and thus be in copyright violation of that code.
Software isn't 'stolen' - it can have its copyright violated. If you don't know the difference between copyright violation and theft. Then you really don't belong in this conversation.
Copying isn't necessarily a copyright violation - there is 'deminimus' and 'interoperability' exemptions to copyright law.