openftgs
Copyright 2026 Samuel Austin


Third-party software
--------------------

openftgs includes a copy of RoMa's inference code in the package openftgs._vendor.romatch
(folder openftgs/_vendor/romatch). The license texts named below sit in that folder: RoMa's
as LICENSE, the others in its LICENSES folder. Its VENDOR.json records the upstream commit,
the SHA-256 of every file and license text, and how each file was changed; every changed file
carries a modification notice.

RoMa (https://github.com/Parskatt/RoMa), commit 77f8d68803526dcddfd9b7a46bc76125bdc25f15
Copyright (c) 2023 Johan Edstedt
Licensed under the MIT License (LICENSE).

The DINOv2 layers in RoMa's models/transformer (https://github.com/facebookresearch/dinov2)
Copyright (c) Meta Platforms, Inc. and affiliates.
Licensed under the Apache License, Version 2.0 (LICENSES/DINOv2.txt). DINOv2 has no NOTICE
file. Their file headers reference:
- DINO (https://github.com/facebookresearch/dino), licensed under the Apache License,
  Version 2.0 (LICENSES/DINO.txt);
- timm (https://github.com/huggingface/pytorch-image-models), Copyright 2019 Ross Wightman,
  licensed under the Apache License, Version 2.0 (LICENSES/timm.txt).

Patch2Pix (https://github.com/GrumpyZhou/patch2pix), credited in RoMa's utils/utils.py
Copyright (c) 2020 Qunjie Zhou
Licensed under the MIT License (LICENSES/Patch2Pix.txt).

LoFTR (https://github.com/zju3dv/LoFTR), from which RoMa's utils/utils.py adapts code
Licensed under the Apache License, Version 2.0 (LICENSES/LoFTR.txt).

Kornia (https://github.com/kornia/kornia), named as a precaution for the epipolar-distance
helpers in RoMa's utils/utils.py, which import kornia
Licensed under the Apache License, Version 2.0 (LICENSES/Kornia.txt).

InLoc (https://github.com/HajimeTaira/InLoc_demo), whose approach RoMa's utils/utils.py credits
Copyright (c) 2017 Hajime Taira
Licensed under the MIT License (LICENSES/InLoc.txt).

openftgs includes a copy of NVIDIA's ꟻLIP loss in the module openftgs._vendor.flip.flip_loss
(folder openftgs/_vendor/flip), with changes that the file marks and its VENDOR.json lists, and
its tests include the unmodified file as a reference (folder tests/reference/flip). Both folders
hold ꟻLIP's license as LICENSE.

ꟻLIP (https://github.com/NVlabs/flip), commit d3ab02a4425eb167d8a4021b382a2bafc6e6c838,
src/pytorch/flip_loss.py
Copyright (c) 2020-2025, NVIDIA CORPORATION & AFFILIATES (the file's own header reads
2020-2024). All rights reserved.
Licensed under the BSD 3-Clause License (LICENSE).

openftgs adapts piq's HaarPSI in the module openftgs.losses (the functions _haarpsi_constants,
_similarity and _haarpsi), with the changes its comments list.

piq (https://github.com/photosynthesis-team/piq), version 0.8.0, piq/haarpsi.py and the helpers
it calls (piq/functional/colour_conversion.py, piq/functional/filters.py, piq/functional/base.py)
By Sergey Kastryulin and the piq contributors (the package's metadata names its author; its
license file names no copyright holder, and it has no NOTICE file).
Licensed under the Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0).

The documentation site's template docs/_templates/autosummary/module.rst (in the source
repository only; neither the sdist nor the wheel holds it) follows the layout of Sphinx's
autosummary/module.rst; its header comment carries Sphinx's license in full.

Sphinx (https://www.sphinx-doc.org/), version 9.2.0,
sphinx/ext/autosummary/templates/autosummary/module.rst
Copyright (c) 2007-2026 by the Sphinx team (see AUTHORS file). All rights reserved.
Licensed under the BSD 2-Clause License.


Pretrained weights
------------------

openftgs downloads the pretrained weights of its trunk perceptual networks from their
publishers at first use; it neither includes nor redistributes them.

The perceptual network vgg16_oxford uses the 16-layer VGG model of the Visual Geometry Group,
University of Oxford, from its Caffe release
(https://www.robots.ox.ac.uk/~vgg/research/very_deep/), whose convolutions openftgs converts
into the user's torch.hub cache at first use. The model is licensed under the Creative Commons
Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/), with
attribution to its technical report: Karen Simonyan and Andrew Zisserman, "Very Deep
Convolutional Networks for Large-Scale Image Recognition", arXiv:1409.1556 (2014).
