osc.data.utils.augment_twice

augment_twice(augment_fn0, augment_fn1)[source]

Augment image twice with two different functions.

Parameters
  • augment_fn0 (Callable[[Tensor], Tensor]) – callable, augment_fn0(img)

  • augment_fn1 (Callable[[Tensor], Tensor]) – callable, augment_fn1(img)

Returns

Callable, augment_twice(fn0, fn1)(img) -> (fn0(img), fn1(img))