icevision_FDA: FDA

Description Usage Arguments Details Value Fourier Domain Adaptation from https Targets Image types Reference Example

View source: R/icevision_albumentations.R

Description

Fourier Domain Adaptation from https://github.com/YanchaoYang/FDA

Usage

1
2
3
4
5
6
7
icevision_FDA(
  reference_images,
  beta_limit = 0.1,
  read_fn = icevision_read_rgb_image(),
  always_apply = FALSE,
  p = 0.5
)

Arguments

reference_images

reference_images

beta_limit

beta_limit

read_fn

read_fn

always_apply

always_apply

p

p

Details

Simple "style transfer".

Value

None

Fourier Domain Adaptation from https

//github.com/YanchaoYang/FDA: Simple "style transfer".

Targets

image

Image types

uint8, float32

Reference

https://github.com/YanchaoYang/FDA https://openaccess.thecvf.com/content_CVPR_2020/papers/Yang_FDA_Fourier_Domain_Adaptation_for_Semantic_Segmentation_CVPR_2020_paper.pdf

Example

>>> import numpy as np >>> import albumentations as A >>> image = np.random.randint(0, 256, [100, 100, 3], dtype=np.uint8) >>> target_image = np.random.randint(0, 256, [100, 100, 3], dtype=np.uint8) >>> aug = A.Compose([A.FDA([target_image], p=1, read_fn=lambda x: x)]) >>> result = aug(image=image)


fastai documentation built on July 28, 2021, 5:06 p.m.