mlverse / torchvision

R interface to torchvision
https://torchvision.mlverse.org
Other
62 stars 15 forks source link

transform_grayscale not implementet for class(x) #84

Open Slimnshady opened 1 year ago

Slimnshady commented 1 year ago

Hey there,

I was wondering if I'm doing anything wrong, or if the transform_grayscale functionality is actually not implemented for any class?

Backtrace: ▆

  1. ├─torchvision::transform_grayscale(img = img, num_output_channels = 3)
  2. └─torchvision:::transform_grayscale.default(img = img, num_output_channels = 3)
  3. └─torchvision:::not_implemented_for_class(img)
  4. └─torchvision:::not_implemented_error(paste0("not implemented for ", class(x))) Run rlang::last_trace(drop = FALSE) to see 1 hidden frame.
skeydan commented 1 year ago

Hi, can you please provide a reproducible example? Thanks!