tests/testthat/test-transforms-magick.R

test_that("multiplication works", {
  im <- magick::image_read("torch.png")
  transform_crop(im, 1, 1, 500, 500)

  im <- transform_random_resized_crop(im, size = c(224, 224))
})
mlverse/torchvision documentation built on Sept. 18, 2024, 4:03 p.m.