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.


pip install git+


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)


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.2.tar.gz (3.6 kB view hashes)

Uploaded source

Supported by

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