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))
})

Try the torchvision package in your browser

Any scripts or data that you put into this service are public.

torchvision documentation built on June 22, 2024, 11:25 a.m.