Domain adaptation based on optimal transport
Python package to simplify OT-based domain adaptation. This package uses POT as optimal transport backend.
Install with pip
$ python3 -m pip install otda --user
Install from source
$ python3 setup.py install --user
Exemplary code snippet
adapted_im = otda.colour_transfer(source_im, target_im, method='linear', nsamples=1000)
Run domain adaptation on a single image
$ python3 -m otda.run --source source.jpg --target target.jpg --output output.jpg --method emd
Available methods: linear, gaussian, sinkhorn, emd.
Some examples of the colour adaptation
| Source image | Target domain image | Method | Output |
|---|---|---|---|
| Linear | |||
| Gaussian | |||
| Sinkhorn | |||
| Earth mover's distance (EMD) |
License
This repository is shared under an MIT license.
Author
Luis Carlos Garcia Peraza Herrera (luiscarlos.gph@gmail.com), 2020-2022.
Metadata
Release files for otda 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| otda-0.0.1.tar.gz | 4.3 kB | Without provenance | Details for otda-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| otda-0.0.1-py3.8.egg | Legacy Egg format | - | - | Details for otda-0.0.1-py3.8.egg |
Total release size: 11.5 kB
Release files / otda-0.0.1.tar.gz
| Download URL | otda-0.0.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c844ef383710a846eabe4fd5fd3b1fde5ecf5ec94cb4d4d50a1d31579dd1909e
|
|
BLAKE2b-256 checksum How to use checksums |
af7bd1b808acb8d0ab21c8203d96762f45eb3e511f5a274808751b40cba6fc96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.4.2 requests/2.27.1 setuptools/62.3.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.10
|
Release files / otda-0.0.1-py3.8.egg
| Download URL | otda-0.0.1-py3.8.egg |
|---|---|
| Size | 7.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
4b62e921650744131b9df22d995c58d14dc026397d1c520ec5f502d6753a4bcf
|
|
BLAKE2b-256 checksum How to use checksums |
6ec7ded1dc34e1c47f385d14be68b9fd4e6cba7f7eff029bdd0244f5187c0f90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.4.2 requests/2.27.1 setuptools/62.3.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.10
|
Security for otda 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.