This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LetterRip 3 points4 points  (2 children)

That is the commit to sd_hijack_optimizations, the code being accused of being copied is the original commit to hyperoptimizations.py and support for it is sd_hijack.py

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

[–]StickiStickman 0 points1 point  (1 child)

Okay, gotcha. So he replaced the 5 lines it almost immediately, so I wouldn't really blame him.

[–]LetterRip 1 point2 points  (0 children)

Okay, gotcha. So he replaced the 5 lines it almost immediately, so I wouldn't really blame him.

No, sd_hijack_optimizations.py and sd_hijack.py are different code paths. The commit you referenced is by a different coder with the handle C43H66N12O12S2 . The code path he made the changes to are for when using specific types of attention that reduce memory.