# Third-party notices

All bundled components are free for commercial use and redistribution.

- **U²-Net / U²-NetP** model weights — Xuebin Qin et al. — Apache License 2.0 — https://github.com/xuebinqin/U-2-Net
  (ONNX export from https://github.com/danielgatis/rembg, MIT)
- **EdgeTAM** model weights (Tap to add or remove, test switch ?edgetam) — Meta Platforms, Inc. and affiliates — Apache License 2.0 — https://github.com/facebookresearch/EdgeTAM
  (ONNX export: https://huggingface.co/jax-image-tools/edgetam-video-onnx, Apache-2.0)
- **BiRefNet_lite** model weights (Remove Background, sharper cut on computers) — Peng Zheng et al. — MIT License — https://github.com/ZhengPeng7/BiRefNet
  (ONNX export: https://huggingface.co/jiabins0303/birefnet-lite-1024-webgpu, MIT, stored at half precision; trained on the DIS5K dataset, Xuebin Qin et al., https://github.com/xuebinqin/DIS)
- **MobileSAM** model weights (Tap to select) — Chaoning Zhang et al. — Apache License 2.0 — https://github.com/ChaoningZhang/MobileSAM
  (ONNX export: https://github.com/palavido-dev/gratis-gis/releases/tag/models-mobilesam-v1)
- **DINOv2 ViT-S/14** model weights (Morph studio, Smart morph) — Meta AI Research — Apache License 2.0 — https://github.com/facebookresearch/dinov2
- **MoveNet SinglePose Thunder v4** model (Morph studio, Smart morph: body points) — Google — Apache License 2.0 — https://www.tensorflow.org/hub/tutorials/movenet (ONNX conversion: github.com/Kazuhito00/MoveNet-Python-Example, Apache License 2.0)
  (ONNX export, stored at half precision)
- **YuNet** face detector (Morph studio, Face morph) — Shiqi Yu / OpenCV Zoo — MIT License — https://github.com/opencv/opencv_zoo
- **MediaPipe Face Mesh** (Morph studio, Face and Smart morphs: 468 face points) — Google — Apache License 2.0 — https://github.com/google-ai-edge/mediapipe (ONNX conversion: https://github.com/yakhyo/mediapipe-face-mesh-onnx, Apache License 2.0)
- **Real-ESRGAN** Compact models realesr-general-x4v3 and realesr-animevideov3 (Upscala, Photo and Cartoon) — Copyright (c) 2021, Xintao Wang — BSD 3-Clause License — https://github.com/xinntao/Real-ESRGAN
- **Anime4K** CNN x2 upscaling shaders (Upscala, Fast) — Copyright (c) 2019-2021 bloc97 — MIT License — https://github.com/bloc97/Anime4K
  Copyright (c) 2020 Shiqi Yu. The above copyright notice and the MIT permission notice are included in the original LICENSE.
- **Noto Emoji Animation** (GIF Maker → Overlay → Stickers, files in /maker/stickers/, unchanged) — Google — Creative Commons Attribution 4.0 (CC BY 4.0) — https://googlefonts.github.io/noto-emoji-animation/
- **ONNX Runtime Web** — Microsoft — MIT License — https://github.com/microsoft/onnxruntime
- **MediaPipe Selfie Segmentation** — Google — Apache License 2.0 — https://github.com/google-ai-edge/mediapipe
- **Lucide** icon paths (eyedropper, magic wand) — ISC License — https://lucide.dev
- **MP4Box.js** — GPAC / Telecom ParisTech — BSD 3-Clause License — https://github.com/gpac/mp4box.js
  Copyright (c) 2012. Telecom ParisTech/TSI/MM/GPAC Cyril Concolato. All rights reserved.
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
  copyright notice, this list of conditions and the disclaimer in the original LICENSE are retained.
- **Squoosh AVIF encoder** (Squeeze → Save as AVIF, /squeeze/avif-enc.*) — Google Chrome Labs — Apache License 2.0 — https://github.com/GoogleChromeLabs/squoosh
  built from **libavif** (AOMedia, BSD 2-Clause) and **libaom** (AOMedia, BSD 2-Clause + AOM patent licence) — https://github.com/AOMediaCodec/libavif

The UI, GIF encoder, colour quantiser and cut-out tools in index.html are original code written for this app.


## Real-ESRGAN licence

BSD 3-Clause License

Copyright (c) 2021, Xintao Wang
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


## Anime4K licence

MIT License

Copyright (c) 2019 bloc97

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.


## FFDNet weights (KAIR) licence

MIT License

Copyright (c) 2019 Kai Zhang

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.


## Detail model (SPAN) licence

Upscala "Detail" uses the model "4x Nomos8k SPAN OTF strong" by Helaman (Philip Hofmann),
https://openmodeldb.info/models/4x-Nomos8k-span-otf-strong, licensed under Creative Commons Attribution 4.0
International (CC BY 4.0), https://creativecommons.org/licenses/by/4.0/ .
Changes: the weights were converted to half precision and the network's parallel convolutions were merged into single
3×3 convolutions (the same merge its own inference code does) for running in the browser with WebGL. No warranty.
SPAN network architecture: "Swift Parameter-free Attention Network for Efficient Super-Resolution", Wan et al. 2024
(github.com/hongyuanyu/SPAN, Apache-2.0).


## Best model (RealPLKSR) licence

Upscala "Best" uses the model "4xNomosWebPhoto_RealPLKSR" by Philip Hofmann,
https://huggingface.co/Phips/4xNomosWebPhoto_RealPLKSR (github.com/Phhofm/models), licensed under Creative Commons
Attribution 4.0 International (CC BY 4.0), https://creativecommons.org/licenses/by/4.0/ .
Changes: the weights were converted to half precision and repacked for running in the browser with WebGL. No warranty.
RealPLKSR network architecture: neosr (github.com/muslll/neosr), based on PLKSR, "Partial Large Kernel CNNs for Efficient
Super-Resolution", Lee et al. 2024.


## Face repair (GFPGAN) licence

Upscala "Fix faces" uses GFPGAN v1.4 (GFPGANv1Clean) by Xintao Wang, Yu Li, Honglun Zhang and Ying Shan (Tencent ARC Lab),
https://github.com/TencentARC/GFPGAN , licensed under the Apache License 2.0, https://www.apache.org/licenses/LICENSE-2.0 .
Changes: the weights were stored as 8-bit numbers with a scale per output channel and the network was rewritten for WebGL
(the stored noise is used instead of random noise). No warranty.
Faces are found with YuNet (Shiqi Yu, OpenCV Zoo, MIT licence), run in plain JavaScript from repacked weights.
