Description Usage Arguments Value Examples
Converts a batch of (image) torch tensors (B x C x H x W) into a data.frame with xy coordinates along with channels (x, y, c1, ..., cn). Useful along with ggplot2 plotting.
1 | image_tensors_to_tbl(image_tensors)
|
image_tensors |
tensor with dimension (B x C x H x W). |
data.frame with B*H*W rows and 3 + C columns.
1 2 | imgs <- torch::torch_tensor(1:prod(2*3*3*4))$reshape(c(2,3,3,4))
image_tensors_to_tbl(imgs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.