r/StableDiffusion • • Oct 11 '22

Automatic1111 did nothing wrong.

It really looks like the Stability team targeted him because he has the most used GUI, that's just petty.

https://github.com/AUTOMATIC1111/stable-diffusion-webui

481 Upvotes

92 comments sorted by

View all comments

Show parent comment

2

u/wiserdking Oct 12 '22

Oh... You are right! Funny thing is I actually even took a look at that code before just to see if there was anything obvious but couldn't find anything - just wondered if those shape indexes were actually specific to NAI or somewhat universal to the hypernetwork trained files format - since I couldn't confirm it I just left it at that. But now that I see the comparison its pretty clear it was copy paste. Even the variable names are exactly the same.

If what others have said about NAI's also having used Auto's code is true then I guess that makes them even -.-. Thank you for showing me this, now my mind is much more at ease with NAI and StabilityAI's actions. Still a bit of an over reaction on their side but since they are both companies I guess it couldn't be helped.

2

u/[deleted] Oct 12 '22

I’m glad I could help clear it up!

Personally I wouldn’t agree with the notion that they are even now. While it’s not the end of the world and Automatic’s actions are not for his personal gain, they still aren’t that ethical. He deliberately took code from that hack to allow using the stolen weights. He was asked to remove it but declined. Not very nice towards NovelAI or Stability.

NovelAI copied the attention code from his repo. Surely they believed that the repository is under an open source license and that they were thus allowed to copy from there. I didn’t realize myself that there is no license before I checked because of the whole drama.

As I understand it it’s very dangerous not to have a license on a repository you intend to be open source. Basically it’s questionable whether even Automatic could license the use of his software because there is no license that covers the contributions from the other 40 authors in the repository. A messy situation.

So, most likely a minor mistake on NovelAI’s part. I believe that this attention stuff is also a relatively common feature that’s implemented in various open source frontends where they could legally copy it from, isn’t it?

I find that not really comparable to deliberately enabling the use of leaked weights by stealing or at the very least reimplementing code from a hacked internal repository.

1

u/TiagoTiagoT Oct 12 '22

No chance that's just how some documentation suggested it to be implemented or primed people to write? Is there no where else on the web that has something along these lines?

1

u/wiserdking Oct 12 '22

Definitely possible and that would explain the variables but IF those shape indexes and that '77' value is specific to NAI's hypernetwork files then there is no way this was not a commit specific for NAI compatibility. Since I'm no proffessional dev and I know pretty much nothing of hypernetworks this is as far as I can tell from that code alone without delving deep into the issue. I did look just now for some documentation but couldn't find that code within a few minutes of searching. I'm sure someone much more capable than me already has checked that out.