|
| 1 | +HiDiffusion - License notice |
| 2 | + |
| 3 | +Original project: https://github.com/megvii-research/HiDiffusion |
| 4 | +Vendored from: https://github.com/monofy-org/HiDiffusion |
| 5 | +Vendored under: invokeai/backend/hidiffusion/ |
| 6 | + |
| 7 | +================================================================================ |
| 8 | +CODE (Apache License 2.0) |
| 9 | +================================================================================ |
| 10 | + |
| 11 | +The vendored HiDiffusion source code is licensed under the Apache License, |
| 12 | +Version 2.0. The Apache 2.0 license text is available in the root LICENSE file |
| 13 | +and at: |
| 14 | + |
| 15 | + https://www.apache.org/licenses/LICENSE-2.0 |
| 16 | + |
| 17 | +================================================================================ |
| 18 | +MODULE KEYS (BSD 3-Clause License) |
| 19 | +================================================================================ |
| 20 | + |
| 21 | +The SD 1.5 and SDXL module-key lists under |
| 22 | +invokeai/backend/hidiffusion/sd_module_key/ were sourced from dgenerate at: |
| 23 | + |
| 24 | + https://github.com/Teriks/dgenerate/tree/d83b839033cc22c5101fb0f987bd4eb2de3d5d12/dgenerate/extras/hidiffusion/sd_module_key |
| 25 | + |
| 26 | +BSD 3-Clause License |
| 27 | + |
| 28 | +Copyright (c) 2023, Teriks |
| 29 | + |
| 30 | +Redistribution and use in source and binary forms, with or without |
| 31 | +modification, are permitted provided that the following conditions are met: |
| 32 | + |
| 33 | +1. Redistributions of source code must retain the above copyright notice, this |
| 34 | + list of conditions and the following disclaimer. |
| 35 | + |
| 36 | +2. Redistributions in binary form must reproduce the above copyright notice, |
| 37 | + this list of conditions and the following disclaimer in the documentation |
| 38 | + and/or other materials provided with the distribution. |
| 39 | + |
| 40 | +3. Neither the name of the copyright holder nor the names of its |
| 41 | + contributors may be used to endorse or promote products derived from |
| 42 | + this software without specific prior written permission. |
| 43 | + |
| 44 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 45 | +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 46 | +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 47 | +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 48 | +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 49 | +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 50 | +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 51 | +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 52 | +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 53 | +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 54 | + |
| 55 | +================================================================================ |
| 56 | +LOCAL MODIFICATIONS |
| 57 | +================================================================================ |
| 58 | + |
| 59 | +The following changes were applied when integrating HiDiffusion into InvokeAI: |
| 60 | + |
| 61 | +* The code was vendored under the invokeai.backend.hidiffusion package. |
| 62 | +* apply_hidiffusion() was extended to accept a torch.Generator, enabling |
| 63 | + deterministic image generation from a seed. |
| 64 | +* HiDiffusion patching was integrated with InvokeAI's model loading and |
| 65 | + generation lifecycle. |
0 commit comments