Skip to main content

QUick and DIrty Domain Adaptation

Project description

QuDiDA (QUick and DIrty Domain Adaptation)

QuDiDA is a micro library for very naive though quick pixel level image domain adaptation via scikit-learn transformers. Is assumed to be used as image augmentation technique, while was not tested in public benchmarks.

Installation

pip install qudida

or

pip install git+https://github.com/arsenyinfo/qudida

Usage

import cv2

from sklearn.decomposition import PCA
from qudida import DomainAdapter

adapter = DomainAdapter(transformer=PCA(n_components=1), ref_img=cv2.imread('target.png'))
source = cv2.imread('source.png')
result = adapter(source)
cv2.imwrite('../result.png', result)

Example

Source image: source Target image (style donor): target Result with various adaptations: result

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qudida-0.0.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

qudida-0.0.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file qudida-0.0.4.tar.gz.

File metadata

  • Download URL: qudida-0.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.11

File hashes

Hashes for qudida-0.0.4.tar.gz
Algorithm Hash digest
SHA256 db198e2887ab0c9aa0023e565afbff41dfb76b361f85fd5e13f780d75ba18cc8
MD5 d0a9ba65f9a1537b92400a22685a23a0
BLAKE2b-256 3e2dbab8babd9dc9a9e4df6eb115540cee4322c1a74078fb6f3b3ebc452a22b3

See more details on using hashes here.

File details

Details for the file qudida-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: qudida-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.11

File hashes

Hashes for qudida-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4519714c40cd0f2e6c51e1735edae8f8b19f4efe1f33be13e9d644ca5f736dd6
MD5 a610fdb6ffb429edecde1ab8bfddd921
BLAKE2b-256 f0a1a5f4bebaa31d109003909809d88aeb0d4b201463a9ea29308d9e4f9e7655

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page