Skip to content

Commit

Permalink
chore(api): link to diffusers and d8ahazard licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 11, 2023
1 parent 5eae80c commit 9171ab6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,15 @@ Please see [the Known Errors section of the user guide](https://github.com/ssube

## Credits

Some of the conversion code was copied or derived from code in:

- https://github.com/huggingface/diffusers/blob/main/scripts/convert_stable_diffusion_checkpoint_to_onnx.py
- https://github.com/huggingface/diffusers/blob/main/LICENSE
- https://github.com/d8ahazard/sd_dreambooth_extension/blob/main/dreambooth/sd_to_diff.py
- https://github.com/d8ahazard/sd_dreambooth_extension/blob/main/license.md

Those parts have their own license with additional restrictions and may need permission for commercial usage.

Getting this set up and running on AMD would not have been possible without guides by:

- https://gist.github.com/harishanand95/75f4515e6187a6aa3261af6ac6f61269
Expand Down
10 changes: 7 additions & 3 deletions api/onnx_web/convert/diffusion_original.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
###
# From:
# Parts of this file are copied or derived from:
# https://github.com/d8ahazard/sd_dreambooth_extension/blob/main/dreambooth/diff_to_sd.py
# https://github.com/huggingface/diffusers/blob/main/scripts/convert_original_stable_diffusion_to_diffusers.py
#
# Originally by https://github.com/d8ahazard and https://github.com/huggingface
# Those portions *are not* covered by the MIT licensed used for the rest of the onnx-web project.
# In particular, you cannot use this converter for commercial purposes without permission.
#
# d8ahazard portions do not include a license header or file
# HuggingFace portions used under the Apache License, Version 2.0
# d8ahazard code used under No-Commercial License with Limited Commercial Use
# https://github.com/d8ahazard/sd_dreambooth_extension/blob/main/license.md
# HuggingFace code used under the Apache License, Version 2.0
# https://github.com/huggingface/diffusers/blob/main/LICENSE
###

import json
Expand Down
11 changes: 11 additions & 0 deletions api/onnx_web/convert/diffusion_stable.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
###
# Parts of this file are copied or derived from:
# https://github.com/huggingface/diffusers/blob/main/scripts/convert_stable_diffusion_checkpoint_to_onnx.py
#
# Originally by https://github.com/huggingface
# Those portions *are not* covered by the MIT licensed used for the rest of the onnx-web project.
#
# HuggingFace code used under the Apache License, Version 2.0
# https://github.com/huggingface/diffusers/blob/main/LICENSE
###

from logging import getLogger
from os import mkdir, path
from pathlib import Path
Expand Down

0 comments on commit 9171ab6

Please sign in to comment.