The extensive modifications made to the original code are released/relicensed under:

GNU General Public License v3

Copyright (c) 2023, Andi Powers-Holmes

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

---

In addition to the above, Andi-Powers Holmes grants the following additional permissions:

Stability AI and its affiliates are granted a non-exclusive, worldwide, royalty-free,
non-transferable, non-sublicensable, non-revocable license to use, reproduce, modify,
and distribute the Software, and to permit persons to whom the Software is furnished to do so,
subject to the conditions of the MIT License the original code was released under (see below).

As a further note, should the GPLv3 license be found to be incompatible with the MIT License,
the MIT License shall take precedence, and the GPLv3 license shall be considered null and void.

Any person or entity who wishes to use this software in a manner not permitted by the above
license(s) can contact Andi Powers-Holmes at the email address listed above (or open a GitHub issue)
to negotiate a separate license agreement.

Aside: In general I'm happy to hand out MIT licenses, but I'd like to keep track of who's using this
so it doesn't get wrapped up in some proprietary for-profit software package without credit and
without giving back to the community.

---

Based upon code from Stability AI's [generative-models/sgm](https://github.com/Stability-AI/generative-models)
repository, originally released under the following license:

MIT License

Copyright (c) 2023 Stability AI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
