xnn.common.models.hub.provenance#

A provenance note next to files of other programs downloaded into the model cache.

xnn does not ship the parameters of other programs. It downloads them on first use and writes LICENSE.txt beside them, which names the program, the release, the source of the files and the license they are distributed under. The first time, it also warns the user that using the files means accepting that license.

Functions

write_license_note(folder, program, release, ...)

Write the provenance note of a cache folder, unless it is already there with the same text; the first time, warn that the license of the program applies to the files.

Exceptions

ParameterLicenseWarning

Parameter files of another program were placed in the cache: its license applies to them.