icevision_FDA: FDA

View source: R/icevision_albumentations.R

icevision_FDAR Documentation

FDA

Description

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

Usage

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 June 22, 2024, 11:15 a.m.