From 47256a14b9c423157459741de7d5502c130d94a1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 17 Sep 2024 13:52:01 +0000 Subject: [PATCH] Built site for torchvision@0.6.0.9000: 510eee9 --- dev/LICENSE-text.html | 14 +- dev/LICENSE.html | 14 +- dev/articles/examples/mnist-cnn.html | 17 +- dev/articles/examples/mnist-dcgan.html | 17 +- dev/articles/examples/mnist-mlp.html | 17 +- dev/articles/examples/style-transfer.html | 17 +- dev/articles/examples/texture-nca.html | 17 +- .../examples/tinyimagenet-alexnet.html | 17 +- dev/articles/index.html | 14 +- dev/authors.html | 26 +- dev/index.html | 14 +- dev/news/index.html | 21 +- dev/pkgdown.yml | 17 +- dev/reference/base_loader.html | 20 +- dev/reference/cifar10_dataset.html | 30 +- dev/reference/draw_bounding_boxes.html | 42 +-- dev/reference/draw_keypoints.html | 38 +-- dev/reference/draw_segmentation_masks.html | 30 +- dev/reference/image_folder_dataset.html | 28 +- dev/reference/index.html | 16 +- dev/reference/kmnist_dataset.html | 30 +- dev/reference/magick_loader.html | 20 +- dev/reference/mnist_dataset.html | 30 +- dev/reference/model_alexnet.html | 30 +- dev/reference/model_inception_v3.html | 44 +-- dev/reference/model_mobilenet_v2.html | 30 +- dev/reference/model_resnet.html | 32 ++- dev/reference/model_vgg.html | 34 ++- dev/reference/tensor_image_browse.html | 22 +- dev/reference/tensor_image_display.html | 22 +- dev/reference/tiny_imagenet_dataset.html | 26 +- .../transform_adjust_brightness.html | 24 +- dev/reference/transform_adjust_contrast.html | 24 +- dev/reference/transform_adjust_gamma.html | 26 +- dev/reference/transform_adjust_hue.html | 24 +- .../transform_adjust_saturation.html | 24 +- dev/reference/transform_affine.html | 38 +-- dev/reference/transform_center_crop.html | 28 +- dev/reference/transform_color_jitter.html | 30 +- .../transform_convert_image_dtype.html | 24 +- dev/reference/transform_crop.html | 30 +- dev/reference/transform_five_crop.html | 26 +- dev/reference/transform_grayscale.html | 24 +- dev/reference/transform_hflip.html | 22 +- .../transform_linear_transformation.html | 28 +- dev/reference/transform_normalize.html | 28 +- dev/reference/transform_pad.html | 28 +- dev/reference/transform_perspective.html | 30 +- dev/reference/transform_random_affine.html | 40 +-- dev/reference/transform_random_apply.html | 26 +- dev/reference/transform_random_choice.html | 24 +- dev/reference/transform_random_crop.html | 34 +-- dev/reference/transform_random_erasing.html | 32 ++- dev/reference/transform_random_grayscale.html | 24 +- .../transform_random_horizontal_flip.html | 24 +- dev/reference/transform_random_order.html | 24 +- .../transform_random_perspective.html | 30 +- .../transform_random_resized_crop.html | 32 ++- dev/reference/transform_random_rotation.html | 36 +-- .../transform_random_vertical_flip.html | 24 +- dev/reference/transform_resize.html | 28 +- dev/reference/transform_resized_crop.html | 36 +-- dev/reference/transform_rgb_to_grayscale.html | 22 +- dev/reference/transform_rotate.html | 34 +-- dev/reference/transform_ten_crop.html | 28 +- dev/reference/transform_to_tensor.html | 22 +- dev/reference/transform_vflip.html | 22 +- dev/reference/vision_make_grid.html | 28 +- dev/sitemap.xml | 272 +++++------------- 69 files changed, 1015 insertions(+), 1031 deletions(-) diff --git a/dev/LICENSE-text.html b/dev/LICENSE-text.html index c713a86..423a4ef 100644 --- a/dev/LICENSE-text.html +++ b/dev/LICENSE-text.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -96,15 +96,15 @@

License

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/LICENSE.html b/dev/LICENSE.html index d6a0e4e..58f0421 100644 --- a/dev/LICENSE.html +++ b/dev/LICENSE.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -100,15 +100,15 @@

MIT License

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/articles/examples/mnist-cnn.html b/dev/articles/examples/mnist-cnn.html index 6bedace..e0a7b08 100644 --- a/dev/articles/examples/mnist-cnn.html +++ b/dev/articles/examples/mnist-cnn.html @@ -12,7 +12,6 @@ - - +
@@ -103,7 +102,7 @@

mnist-cnn

- Source: vignettes/examples/mnist-cnn.Rmd + Source: vignettes/examples/mnist-cnn.Rmd
@@ -225,16 +224,16 @@

mnist-cnn

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/articles/examples/mnist-dcgan.html b/dev/articles/examples/mnist-dcgan.html index 8f10512..cd8fbf0 100644 --- a/dev/articles/examples/mnist-dcgan.html +++ b/dev/articles/examples/mnist-dcgan.html @@ -12,7 +12,6 @@ - - +
@@ -103,7 +102,7 @@

mnist-dcgan

- Source: vignettes/examples/mnist-dcgan.Rmd + Source: vignettes/examples/mnist-dcgan.Rmd
@@ -289,16 +288,16 @@

mnist-dcgan

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/articles/examples/mnist-mlp.html b/dev/articles/examples/mnist-mlp.html index f29670e..e125c4c 100644 --- a/dev/articles/examples/mnist-mlp.html +++ b/dev/articles/examples/mnist-mlp.html @@ -12,7 +12,6 @@ - - +
@@ -103,7 +102,7 @@

mnist-mlp

- Source: vignettes/examples/mnist-mlp.Rmd + Source: vignettes/examples/mnist-mlp.Rmd
@@ -214,16 +213,16 @@

mnist-mlp

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/articles/examples/style-transfer.html b/dev/articles/examples/style-transfer.html index 69bc554..6b7515c 100644 --- a/dev/articles/examples/style-transfer.html +++ b/dev/articles/examples/style-transfer.html @@ -12,7 +12,6 @@ - - +
@@ -103,7 +102,7 @@

style-transfer

- Source: vignettes/examples/style-transfer.Rmd + Source: vignettes/examples/style-transfer.Rmd
@@ -269,16 +268,16 @@

style-transfer

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/articles/examples/texture-nca.html b/dev/articles/examples/texture-nca.html index d5cc6dd..27783af 100644 --- a/dev/articles/examples/texture-nca.html +++ b/dev/articles/examples/texture-nca.html @@ -12,7 +12,6 @@ - - +
@@ -103,7 +102,7 @@

texture-nca

- Source: vignettes/examples/texture-nca.Rmd + Source: vignettes/examples/texture-nca.Rmd
@@ -381,16 +380,16 @@

texture-nca

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/articles/examples/tinyimagenet-alexnet.html b/dev/articles/examples/tinyimagenet-alexnet.html index 15235ce..cb05333 100644 --- a/dev/articles/examples/tinyimagenet-alexnet.html +++ b/dev/articles/examples/tinyimagenet-alexnet.html @@ -12,7 +12,6 @@ - - +
@@ -103,7 +102,7 @@

tinyimagenet-alexnet

- Source: vignettes/examples/tinyimagenet-alexnet.Rmd + Source: vignettes/examples/tinyimagenet-alexnet.Rmd
@@ -227,16 +226,16 @@

tinyimagenet-alexnet

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/articles/index.html b/dev/articles/index.html index 87c1a37..1c738bf 100644 --- a/dev/articles/index.html +++ b/dev/articles/index.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -103,15 +103,15 @@

All vignettes

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/authors.html b/dev/authors.html index 7937749..b2145dc 100644 --- a/dev/authors.html +++ b/dev/authors.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -78,31 +78,31 @@

Authors and Citation

- +

Citation

- Source: DESCRIPTION + Source: DESCRIPTION

Falbel D (2024). torchvision: Models, Datasets and Transformations for Images. -R package version 0.6.0.9000, https://github.com/mlverse/torchvision, https://torchvision.mlverse.org. +R package version 0.6.0.9000, https://github.com/mlverse/torchvision, https://torchvision.mlverse.org.

@Manual{,
   title = {torchvision: Models, Datasets and Transformations for Images},
@@ -123,15 +123,15 @@ 

Citation

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/index.html b/dev/index.html index f4f9e99..aecb266 100644 --- a/dev/index.html +++ b/dev/index.html @@ -26,7 +26,7 @@ - +
- +
@@ -172,16 +172,16 @@

Dev status

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/news/index.html b/dev/news/index.html index 07f5342..6cdfa9c 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
-
+
- +
  • Remove again dependency on zip::unzip added in version 0.4.0. (#89)
  • Improve performance on tinyimagenet-alexnet example (#90, @statist-bhfz)
  • Updated URL of downloaded resources to use the new torch CDN. (#109)
  • @@ -140,15 +141,15 @@
-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index cefe546..d421acf 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -1,12 +1,11 @@ pandoc: 3.1.11 -pkgdown: 2.0.9 +pkgdown: 2.1.0 pkgdown_sha: ~ articles: - mnist-cnn: examples/mnist-cnn.html - mnist-dcgan: examples/mnist-dcgan.html - mnist-mlp: examples/mnist-mlp.html - style-transfer: examples/style-transfer.html - texture-nca: examples/texture-nca.html - tinyimagenet-alexnet: examples/tinyimagenet-alexnet.html -last_built: 2024-06-14T18:03Z - + examples/mnist-cnn: examples/mnist-cnn.html + examples/mnist-dcgan: examples/mnist-dcgan.html + examples/mnist-mlp: examples/mnist-mlp.html + examples/style-transfer: examples/style-transfer.html + examples/texture-nca: examples/texture-nca.html + examples/tinyimagenet-alexnet: examples/tinyimagenet-alexnet.html +last_built: 2024-09-17T13:51Z diff --git a/dev/reference/base_loader.html b/dev/reference/base_loader.html index 517534c..7ffea30 100644 --- a/dev/reference/base_loader.html +++ b/dev/reference/base_loader.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -91,7 +91,9 @@

Base loader

Arguments

-
path
+ + +
path

path to the image to load from

@@ -108,15 +110,15 @@

Arguments

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/cifar10_dataset.html b/dev/reference/cifar10_dataset.html index 3210000..d35176e 100644 --- a/dev/reference/cifar10_dataset.html +++ b/dev/reference/cifar10_dataset.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -105,27 +105,29 @@

Cifar datasets

Arguments

-
root
+ + +
root

(string): Root directory of dataset where directory cifar-10-batches-bin exists or will be saved to if download is set to TRUE.

-
train
+
train

(bool, optional): If TRUE, creates dataset from training set, otherwise creates from test set.

-
transform
+
transform

(callable, optional): A function/transform that takes in an PIL image -and returns a transformed version. E.g, transforms.RandomCrop

+and returns a transformed version. E.g, transform_random_crop()

-
target_transform
+
target_transform

(callable, optional): A function/transform that takes in the target and transforms it.

-
download
+
download

(bool, optional): If true, downloads the dataset from the internet and puts it in root directory. If dataset is already downloaded, it is not downloaded again.

@@ -144,15 +146,15 @@

Arguments

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/draw_bounding_boxes.html b/dev/reference/draw_bounding_boxes.html index 62f229c..8f2cc9f 100644 --- a/dev/reference/draw_bounding_boxes.html +++ b/dev/reference/draw_bounding_boxes.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -98,60 +98,60 @@

Draws bounding boxes on image.

Arguments

-
image
+ + +
image

: Tensor of shape (C x H x W) and dtype uint8.

-
boxes
+
boxes

: Tensor of size (N, 4) containing bounding boxes in (xmin, ymin, xmax, ymax) format. Note that the boxes are absolute coordinates with respect to the image. In other words: 0 = xmin < xmax < W and 0 = ymin < ymax < H.

-
labels
+
labels

: character vector containing the labels of bounding boxes.

-
colors
+
colors

: character vector containing the colors of the boxes or single color for all boxes. The color can be represented as strings e.g. "red" or "#FF00FF". By default, viridis colors are generated for boxes.

-
fill
+
fill

: If TRUE fills the bounding box with specified color.

-
width
+
width

: Width of text shift to the bounding box.

-
font
+
font

: NULL for the current font family, or a character vector of length 2 for Hershey vector fonts.

-
font_size
+
font_size

: The requested font size in points.

Value

- - -

torch_tensor of size (C, H, W) of dtype uint8: Image Tensor with bounding boxes plotted.

+

torch_tensor of size (C, H, W) of dtype uint8: Image Tensor with bounding boxes plotted.

Examples

if (torch::torch_is_installed()) {
-if (FALSE) {
+if (FALSE) { # \dontrun{
 image <- torch::torch_randint(170, 250, size = c(3, 360, 360))$to(torch::torch_uint8())
 x <- torch::torch_randint(low = 1, high = 160, size = c(12,1))
 y <- torch::torch_randint(low = 1, high = 260, size = c(12,1))
 boxes <- torch::torch_cat(c(x, y, x + 20, y +  10), dim = 2)
 bboxed <- draw_bounding_boxes(image, boxes, colors = "black", fill = TRUE)
 tensor_image_browse(bboxed)
-}
+} # }
 }
 
@@ -167,15 +167,15 @@

Examples

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/draw_keypoints.html b/dev/reference/draw_keypoints.html index e406367..39da5fb 100644 --- a/dev/reference/draw_keypoints.html +++ b/dev/reference/draw_keypoints.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -96,48 +96,48 @@

Draws Keypoints

Arguments

-
image
+ + +
image

: Tensor of shape (3, H, W) and dtype uint8

-
keypoints
+
keypoints

: Tensor of shape (N, K, 2) the K keypoints location for each of the N detected poses instance,

-
connectivity
+
connectivity

: Vector of pair of keypoints to be connected (currently unavailable)

-
colors
+
colors

: character vector containing the colors of the boxes or single color for all boxes. The color can be represented as strings e.g. "red" or "#FF00FF". By default, viridis colors are generated for keypoints

-
radius
+
radius

: radius of the plotted keypoint.

-
width
+
width

: width of line connecting keypoints.

Value

- - -

Image Tensor of dtype uint8 with keypoints drawn.

+

Image Tensor of dtype uint8 with keypoints drawn.

Examples

if (torch::torch_is_installed()) {
-if (FALSE) {
+if (FALSE) { # \dontrun{
 image <- torch::torch_randint(190, 255, size = c(3, 360, 360))$to(torch::torch_uint8())
 keypoints <- torch::torch_randint(low = 60, high = 300, size = c(4, 5, 2))
 keypoint_image <- draw_keypoints(image, keypoints)
 tensor_image_browse(keypoint_image)
-}
+} # }
 }
 
@@ -153,15 +153,15 @@

Examples

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/draw_segmentation_masks.html b/dev/reference/draw_segmentation_masks.html index 5cfd521..ee10355 100644 --- a/dev/reference/draw_segmentation_masks.html +++ b/dev/reference/draw_segmentation_masks.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,19 +89,21 @@

Draw segmentation masks

Arguments

-
image
+ + +
image

: torch_tensor of shape (3, H, W) and dtype uint8.

-
masks
+
masks

: torch_tensor of shape (num_masks, H, W) or (H, W) and dtype bool.

-
alpha
+
alpha

: number between 0 and 1 denoting the transparency of the masks.

-
colors
+
colors

: character vector containing the colors of the boxes or single color for all boxes. The color can be represented as strings e.g. "red" or "#FF00FF". By default, viridis colors are generated for masks

@@ -109,9 +111,7 @@

Arguments

Value

- - -

torch_tensor of shape (3, H, W) and dtype uint8 of the image with segmentation masks drawn on top.

+

torch_tensor of shape (3, H, W) and dtype uint8 of the image with segmentation masks drawn on top.

@@ -136,15 +136,15 @@

Examples

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/image_folder_dataset.html b/dev/reference/image_folder_dataset.html index a39d78d..ab180f5 100644 --- a/dev/reference/image_folder_dataset.html +++ b/dev/reference/image_folder_dataset.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -97,25 +97,27 @@

Create an image folder dataset

Arguments

-
root
+ + +
root

Root directory path.

-
transform
+
transform

A function/transform that takes in an PIL image and returns a transformed version. E.g, transform_random_crop().

-
target_transform
+
target_transform

A function/transform that takes in the target and transforms it.

-
loader
+
loader

A function to load an image given its path.

-
is_valid_file
+
is_valid_file

A function that takes path of an Image file and check if the file is a valid file (used to check of corrupt files)

@@ -147,15 +149,15 @@

Details

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/index.html b/dev/reference/index.html index b3e3f27..eae7a40 100644 --- a/dev/reference/index.html +++ b/dev/reference/index.html @@ -1,5 +1,5 @@ -Function reference • torchvisionPackage index • torchvision - +
- +
@@ -326,15 +326,15 @@

Misc

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/kmnist_dataset.html b/dev/reference/kmnist_dataset.html index 6a0de85..54fa68f 100644 --- a/dev/reference/kmnist_dataset.html +++ b/dev/reference/kmnist_dataset.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -97,27 +97,29 @@

Kuzushiji-MNIST

Arguments

-
root
+ + +
root

(string): Root directory of dataset where KMNIST/processed/training.pt and KMNIST/processed/test.pt exist.

-
train
+
train

(bool, optional): If TRUE, creates dataset from training.pt, otherwise from test.pt.

-
transform
+
transform

(callable, optional): A function/transform that takes in an -PIL image and returns a transformed version. E.g, transforms.RandomCrop.

+PIL image and returns a transformed version. E.g, transform_random_crop().

-
target_transform
+
target_transform

(callable, optional): A function/transform that takes in the target and transforms it.

-
download
+
download

(bool, optional): If true, downloads the dataset from the internet and puts it in root directory. If dataset is already downloaded, it is not downloaded again.

@@ -136,15 +138,15 @@

Arguments

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/magick_loader.html b/dev/reference/magick_loader.html index 52c7cb0..27e8e7f 100644 --- a/dev/reference/magick_loader.html +++ b/dev/reference/magick_loader.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,7 +89,9 @@

Load an Image using ImageMagick

Arguments

-
path
+ + +
path

path to the image to load from.

@@ -106,15 +108,15 @@

Arguments

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/mnist_dataset.html b/dev/reference/mnist_dataset.html index baf1dea..c5955dc 100644 --- a/dev/reference/mnist_dataset.html +++ b/dev/reference/mnist_dataset.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -95,28 +95,30 @@

MNIST dataset

Arguments

-
root
+ + +
root

(string): Root directory of dataset where MNIST/processed/training.pt and MNIST/processed/test.pt exist.

-
train
+
train

(bool, optional): If True, creates dataset from training.pt, otherwise from test.pt.

-
transform
+
transform

(callable, optional): A function/transform that takes in an PIL image and returns a transformed version. E.g, -transforms.RandomCrop.

+transform_random_crop().

-
target_transform
+
target_transform

(callable, optional): A function/transform that takes in the target and transforms it.

-
download
+
download

(bool, optional): If true, downloads the dataset from the internet and puts it in root directory. If dataset is already downloaded, it is not downloaded again.

@@ -135,15 +137,15 @@

Arguments

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/model_alexnet.html b/dev/reference/model_alexnet.html index 1ba9147..d2ff95d 100644 --- a/dev/reference/model_alexnet.html +++ b/dev/reference/model_alexnet.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -91,25 +91,29 @@

AlexNet Model Architecture

Arguments

-
pretrained
+ + +
pretrained

(bool): If TRUE, returns a model pre-trained on ImageNet.

-
progress
+
progress

(bool): If TRUE, displays a progress bar of the download to stderr.

-
...
+
...

other parameters passed to the model intializer. currently only num_classes is used.

See also

-
@@ -124,15 +128,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/model_inception_v3.html b/dev/reference/model_inception_v3.html index a090089..3f277bf 100644 --- a/dev/reference/model_inception_v3.html +++ b/dev/reference/model_inception_v3.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -91,19 +91,21 @@

Inception v3 model

Arguments

-
pretrained
-

(bool): If True, returns a model pre-trained on ImageNet

-
progress
-

(bool): If True, displays a progress bar of the download to stderr

+
pretrained
+

(bool): If TRUE, returns a model pre-trained on ImageNet

+ +
progress
+

(bool): If TRUE, displays a progress bar of the download to stderr

-
...
-

Used to pass keyword arguments to the Inception module:

  • aux_logits (bool): If True, add an auxiliary branch that can improve training. -Default: True

  • -
  • transform_input (bool): If True, preprocesses the input according to the method with which it -was trained on ImageNet. Default: False

  • + +
    ...
    +

    Used to pass keyword arguments to the Inception module:

    • aux_logits (bool): If TRUE, add an auxiliary branch that can improve training. +Default: TRUE

    • +
    • transform_input (bool): If TRUE, preprocess the input according to the method with which it +was trained on ImageNet. Default: FALSE

@@ -112,6 +114,14 @@

Note

Important: In contrast to the other models the inception_v3 expects tensors with a size of N x 3 x 299 x 299, so ensure your images are sized accordingly.

+
+

See also

+ +
-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/model_mobilenet_v2.html b/dev/reference/model_mobilenet_v2.html index 2fbaaad..d2cff32 100644 --- a/dev/reference/model_mobilenet_v2.html +++ b/dev/reference/model_mobilenet_v2.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -91,24 +91,28 @@

Constructs a MobileNetV2 architecture from

Arguments

-
pretrained
+ + +
pretrained

(bool): If TRUE, returns a model pre-trained on ImageNet.

-
progress
+
progress

(bool): If TRUE, displays a progress bar of the download to stderr.

-
...
+
...

Other parameters passed to the model implementation.

See also

-

Other models: +

Other models: model_alexnet(), -model_resnet

+model_inception_v3(), +model_resnet, +model_vgg

@@ -123,15 +127,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/model_resnet.html b/dev/reference/model_resnet.html index 9167e3f..5c50a33 100644 --- a/dev/reference/model_resnet.html +++ b/dev/reference/model_resnet.html @@ -11,7 +11,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -109,22 +109,24 @@

ResNet implementation

Arguments

-
pretrained
+ + +
pretrained

(bool): If TRUE, returns a model pre-trained on ImageNet.

-
progress
+
progress

(bool): If TRUE, displays a progress bar of the download to stderr.

-
...
+
...

Other parameters passed to the resnet model.

Functions

- +
  • model_resnet18(): ResNet 18-layer model

  • model_resnet34(): ResNet 34-layer model

  • model_resnet50(): ResNet 50-layer model

  • @@ -141,9 +143,11 @@

    Functions

See also

-
@@ -158,15 +162,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/model_vgg.html b/dev/reference/model_vgg.html index e8f4d4b..a82331a 100644 --- a/dev/reference/model_vgg.html +++ b/dev/reference/model_vgg.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -105,22 +105,24 @@

VGG implementation

Arguments

-
pretrained
+ + +
pretrained

(bool): If TRUE, returns a model pre-trained on ImageNet

-
progress
+
progress

(bool): If TRUE, displays a progress bar of the download to stderr

-
...
+
...

other parameters passed to the VGG model implementation.

Functions

- +
  • model_vgg11(): VGG 11-layer model (configuration "A")

  • model_vgg11_bn(): VGG 11-layer model (configuration "A") with batch normalization

  • model_vgg13(): VGG 13-layer model (configuration "B")

  • @@ -130,6 +132,14 @@

    Functions

  • model_vgg19(): VGG 19-layer model (configuration "E")

  • model_vgg19_bn(): VGG 19-layer model (configuration "E") with batch normalization

+
+

See also

+ +
-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/tensor_image_browse.html b/dev/reference/tensor_image_browse.html index ec07f5b..cd5f38c 100644 --- a/dev/reference/tensor_image_browse.html +++ b/dev/reference/tensor_image_browse.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,12 +89,14 @@

Display image tensor

Arguments

-
image
+ + +
image

torch_tensor() of shape (1, W, H) for grayscale image or (3, W, H) for color image, of type torch_uint8() to display

-
browser
+
browser

argument passed to browseURL

@@ -111,15 +113,15 @@

Arguments

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/tensor_image_display.html b/dev/reference/tensor_image_display.html index 4235b63..af39192 100644 --- a/dev/reference/tensor_image_display.html +++ b/dev/reference/tensor_image_display.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,12 +89,14 @@

Display image tensor

Arguments

-
image
+ + +
image

torch_tensor() of shape (1, W, H) for grayscale image or (3, W, H) for color image, of type torch_uint8() to display

-
animate
+
animate

support animations in the X11 display

@@ -111,15 +113,15 @@

Arguments

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/tiny_imagenet_dataset.html b/dev/reference/tiny_imagenet_dataset.html index dc318fe..a0a216d 100644 --- a/dev/reference/tiny_imagenet_dataset.html +++ b/dev/reference/tiny_imagenet_dataset.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,19 +89,21 @@

Tiny ImageNet dataset

Arguments

-
root
+ + +
root

directory path to download the dataset.

-
split
+
split

dataset split, train, validation or test.

-
download
+
download

whether to download or not the dataset.

-
...
+
...

other arguments passed to image_folder_dataset().

@@ -118,15 +120,15 @@

Arguments

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_adjust_brightness.html b/dev/reference/transform_adjust_brightness.html index 0fee85e..e5f0e68 100644 --- a/dev/reference/transform_adjust_brightness.html +++ b/dev/reference/transform_adjust_brightness.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,11 +89,13 @@

Adjust the brightness of an image

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
brightness_factor
+
brightness_factor

(float): How much to adjust the brightness. Can be any non negative number. 0 gives a black image, 1 gives the original image while 2 increases the brightness by a factor of 2.

@@ -101,7 +103,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_contrast(), transform_adjust_gamma(), transform_adjust_hue(), @@ -151,15 +153,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_adjust_contrast.html b/dev/reference/transform_adjust_contrast.html index 5070b46..94856ba 100644 --- a/dev/reference/transform_adjust_contrast.html +++ b/dev/reference/transform_adjust_contrast.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,11 +89,13 @@

Adjust the contrast of an image

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
contrast_factor
+
contrast_factor

(float): How much to adjust the contrast. Can be any non negative number. 0 gives a solid gray image, 1 gives the original image while 2 increases the contrast by a factor of 2.

@@ -101,7 +103,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_gamma(), transform_adjust_hue(), @@ -151,15 +153,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_adjust_gamma.html b/dev/reference/transform_adjust_gamma.html index 00b0067..a80c1f2 100644 --- a/dev/reference/transform_adjust_gamma.html +++ b/dev/reference/transform_adjust_gamma.html @@ -14,7 +14,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -99,17 +99,19 @@

Adjust the gamma of an RGB image

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
gamma
+
gamma

(float): Non negative real number, same as \(\gamma\) in the equation. gamma larger than 1 make the shadows darker, while gamma smaller than 1 make dark regions lighter.

-
gain
+
gain

(float): The constant multiplier.

@@ -119,7 +121,7 @@

Details

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_hue(), @@ -169,15 +171,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_adjust_hue.html b/dev/reference/transform_adjust_hue.html index 0cb872d..a29b863 100644 --- a/dev/reference/transform_adjust_hue.html +++ b/dev/reference/transform_adjust_hue.html @@ -11,7 +11,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -93,11 +93,13 @@

Adjust the hue of an image

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
hue_factor
+
hue_factor

(float): How much to shift the hue channel. Should be in [-0.5, 0.5]. 0.5 and -0.5 give complete reversal of hue channel in HSV space in positive and negative direction respectively. @@ -113,7 +115,7 @@

Details

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -163,15 +165,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_adjust_saturation.html b/dev/reference/transform_adjust_saturation.html index c01594d..47dec27 100644 --- a/dev/reference/transform_adjust_saturation.html +++ b/dev/reference/transform_adjust_saturation.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,11 +89,13 @@

Adjust the color saturation of an image

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
saturation_factor
+
saturation_factor

(float): How much to adjust the saturation. 0 will give a black and white image, 1 will give the original image while 2 will enhance the saturation by a factor of 2.

@@ -101,7 +103,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -151,15 +153,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_affine.html b/dev/reference/transform_affine.html index e1bd241..bedb565 100644 --- a/dev/reference/transform_affine.html +++ b/dev/reference/transform_affine.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -97,31 +97,33 @@

Apply affine transformation on an image keeping image center invariant

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
angle
+
angle

(float or int): rotation angle value in degrees, counter-clockwise.

-
translate
+
translate

(tuple, optional): tuple of maximum absolute fraction for -horizontal and vertical translations. For example translate=(a, b), then +horizontal and vertical translations. For example translate=c(a, b), then horizontal shift is randomly sampled in the range -img_width * a < dx < img_width * a and vertical shift is randomly sampled in the range -img_height * b < dy < img_height * b. Will not translate by default.

-
scale
-

(tuple, optional): scaling factor interval, e.g (a, b), then +

scale
+

(tuple, optional): scaling factor interval, e.g c(a, b), then scale is randomly sampled from the range a <= scale <= b. Will keep original scale by default.

-
shear
+
shear

(sequence or float or int, optional): Range of degrees to select from. If shear is a number, a shear parallel to the x axis in the range (-shear, +shear) will be applied. Else if shear is a tuple or list of 2 @@ -131,12 +133,12 @@

Arguments

will be applied. Will not apply shear by default.

-
resample
+
resample

(int, optional): An optional resampling filter. See interpolation modes.

-
fillcolor
+
fillcolor

(tuple or int): Optional fill color (Tuple for RGB Image and int for grayscale) for the area outside the transform in the output image (Pillow>=5.0.0). This option is not supported for Tensor input. Fill value @@ -145,7 +147,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -195,15 +197,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_center_crop.html b/dev/reference/transform_center_crop.html index f2aac42..4dd9ca0 100644 --- a/dev/reference/transform_center_crop.html +++ b/dev/reference/transform_center_crop.html @@ -11,7 +11,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -93,20 +93,22 @@

Crops the given image at the center

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
size
+
size

(sequence or int): Desired output size of the crop. If size is -an int instead of sequence like (h, w), a square crop (size, size) is +an int instead of sequence like c(h, w), a square crop (size, size) is made. If provided a tuple or list of length 1, it will be interpreted as -(size, size).

+c(size, size).

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -156,15 +158,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_color_jitter.html b/dev/reference/transform_color_jitter.html index cba5536..3fc973f 100644 --- a/dev/reference/transform_color_jitter.html +++ b/dev/reference/transform_color_jitter.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -95,32 +95,34 @@

Randomly change the brightness, contrast and saturation of an image

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
brightness
+
brightness

(float or tuple of float (min, max)): How much to jitter brightness. brightness_factor is chosen uniformly from [max(0, 1 - brightness), 1 + brightness] or the given [min, max]. Should be non negative numbers.

-
contrast
+
contrast

(float or tuple of float (min, max)): How much to jitter contrast. contrast_factor is chosen uniformly from [max(0, 1 - contrast), 1 + contrast] or the given [min, max]. Should be non negative numbers.

-
saturation
+
saturation

(float or tuple of float (min, max)): How much to jitter saturation. saturation_factor is chosen uniformly from [max(0, 1 - saturation), 1 + saturation] or the given [min, max]. Should be non negative numbers.

-
hue
+
hue

(float or tuple of float (min, max)): How much to jitter hue. hue_factor is chosen uniformly from [-hue, hue] or the given [min, max]. Should have 0<= hue <= 0.5 or -0.5 <= min <= max <= 0.5.

@@ -128,7 +130,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -178,15 +180,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_convert_image_dtype.html b/dev/reference/transform_convert_image_dtype.html index 4e5ca82..57e1b5f 100644 --- a/dev/reference/transform_convert_image_dtype.html +++ b/dev/reference/transform_convert_image_dtype.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,11 +89,13 @@

Convert a tensor image to the given dtype and scale the values

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
dtype
+
dtype

(torch.dtype): Desired data type of the output.

@@ -105,7 +107,7 @@

Note

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -155,15 +157,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_crop.html b/dev/reference/transform_crop.html index dbfd339..338c0c9 100644 --- a/dev/reference/transform_crop.html +++ b/dev/reference/transform_crop.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,30 +89,32 @@

Crop the given image at specified location and output size

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
top
+
top

(int): Vertical component of the top left corner of the crop box.

-
left
+
left

(int): Horizontal component of the top left corner of the crop box.

-
height
+
height

(int): Height of the crop box.

-
width
+
width

(int): Width of the crop box.

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -162,15 +164,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_five_crop.html b/dev/reference/transform_five_crop.html index eb7f3fd..5f304ca 100644 --- a/dev/reference/transform_five_crop.html +++ b/dev/reference/transform_five_crop.html @@ -11,7 +11,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -93,13 +93,15 @@

Crop image into four corners and a central crop

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
size
+
size

(sequence or int): Desired output size. If size is a sequence -like (h, w), output size will be matched to this. If size is an int, +like c(h, w), output size will be matched to this. If size is an int, smaller edge of the image will be matched to this number. i.e, if height > width, then image will be rescaled to (size * height / width, size).

@@ -107,7 +109,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -157,15 +159,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_grayscale.html b/dev/reference/transform_grayscale.html index 6091749..8e95571 100644 --- a/dev/reference/transform_grayscale.html +++ b/dev/reference/transform_grayscale.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,18 +89,20 @@

Convert image to grayscale

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
num_output_channels
+
num_output_channels

(int): (1 or 3) number of channels desired for output image

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -150,15 +152,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_hflip.html b/dev/reference/transform_hflip.html index 2e0e932..55492ff 100644 --- a/dev/reference/transform_hflip.html +++ b/dev/reference/transform_hflip.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,13 +89,15 @@

Horizontally flip a PIL Image or Tensor

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -145,15 +147,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_linear_transformation.html b/dev/reference/transform_linear_transformation.html index 23b472e..b90bc9a 100644 --- a/dev/reference/transform_linear_transformation.html +++ b/dev/reference/transform_linear_transformation.html @@ -12,7 +12,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -95,21 +95,23 @@

Transform a tensor image with a square transformation matrix and a mean_vect

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
transformation_matrix
+
transformation_matrix

(Tensor): tensor [D x D], D = C x H x W.

-
mean_vector
+
mean_vector

(Tensor): tensor D, D = C x H x W.

Applications

- +

whitening transformation: Suppose X is a column vector zero-centered data. Then compute the data covariance matrix [D x D] with torch.mm(X.t(), X), @@ -117,7 +119,7 @@

Applications

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -167,15 +169,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_normalize.html b/dev/reference/transform_normalize.html index 91c81d5..1e34809 100644 --- a/dev/reference/transform_normalize.html +++ b/dev/reference/transform_normalize.html @@ -12,7 +12,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -95,19 +95,21 @@

Normalize a tensor image with mean and standard deviation

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
mean
+
mean

(sequence): Sequence of means for each channel.

-
std
+
std

(sequence): Sequence of standard deviations for each channel.

-
inplace
+
inplace

(bool,optional): Bool to make this operation in-place.

@@ -117,7 +119,7 @@

Note

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -167,15 +169,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_pad.html b/dev/reference/transform_pad.html index f6ea6dc..36a44d4 100644 --- a/dev/reference/transform_pad.html +++ b/dev/reference/transform_pad.html @@ -11,7 +11,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -93,11 +93,13 @@

Pad the given image on all sides with the given "pad" value

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
padding
+
padding

(int or tuple or list): Padding on each border. If a single int is provided this is used to pad all borders. If tuple of length 2 is provided this is the padding on left/right and top/bottom respectively. @@ -105,14 +107,14 @@

Arguments

top and bottom borders respectively.

-
fill
+
fill

(int or str or tuple): Pixel fill value for constant fill. Default is 0. If a tuple of length 3, it is used to fill R, G, B channels respectively. This value is only used when the padding_mode is constant. Only int value is supported for Tensors.

-
padding_mode
+
padding_mode

Type of padding. Should be: constant, edge, reflect or symmetric. Default is constant. Mode symmetric is not yet supported for Tensor inputs.

  • constant: pads with a constant value, this value is specified with fill

  • @@ -128,7 +130,7 @@

    Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -178,15 +180,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_perspective.html b/dev/reference/transform_perspective.html index e3cfd49..3bfd0d3 100644 --- a/dev/reference/transform_perspective.html +++ b/dev/reference/transform_perspective.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -95,30 +95,32 @@

Perspective transformation of an image

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
startpoints
+
startpoints

(list of list of ints): List containing four lists of two integers corresponding to four corners [top-left, top-right, bottom-right, bottom-left] of the original image.

-
endpoints
+
endpoints

(list of list of ints): List containing four lists of two integers corresponding to four corners [top-left, top-right, bottom-right, bottom-left] of the transformed image.

-
interpolation
+
interpolation

(int, optional) Desired interpolation. An integer 0 = nearest, 2 = bilinear, and 3 = bicubic or a name from magick::filter_types().

-
fill
+
fill

(int or str or tuple): Pixel fill value for constant fill. Default is 0. If a tuple of length 3, it is used to fill R, G, B channels respectively. This value is only used when the padding_mode is constant. @@ -127,7 +129,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -177,15 +179,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_affine.html b/dev/reference/transform_random_affine.html index 58251ef..e953be0 100644 --- a/dev/reference/transform_random_affine.html +++ b/dev/reference/transform_random_affine.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -97,32 +97,34 @@

Random affine transformation of the image keeping center invariant

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
degrees
+
degrees

(sequence or float or int): Range of degrees to select from. -If degrees is a number instead of sequence like (min, max), the range of +If degrees is a number instead of sequence like c(min, max), the range of degrees will be (-degrees, +degrees).

-
translate
+
translate

(tuple, optional): tuple of maximum absolute fraction for -horizontal and vertical translations. For example translate=(a, b), then +horizontal and vertical translations. For example translate=c(a, b), then horizontal shift is randomly sampled in the range -img_width * a < dx < img_width * a and vertical shift is randomly sampled in the range -img_height * b < dy < img_height * b. Will not translate by default.

-
scale
-

(tuple, optional): scaling factor interval, e.g (a, b), then +

scale
+

(tuple, optional): scaling factor interval, e.g c(a, b), then scale is randomly sampled from the range a <= scale <= b. Will keep original scale by default.

-
shear
+
shear

(sequence or float or int, optional): Range of degrees to select from. If shear is a number, a shear parallel to the x axis in the range (-shear, +shear) will be applied. Else if shear is a tuple or list of 2 @@ -132,12 +134,12 @@

Arguments

will be applied. Will not apply shear by default.

-
resample
+
resample

(int, optional): An optional resampling filter. See interpolation modes.

-
fillcolor
+
fillcolor

(tuple or int): Optional fill color (Tuple for RGB Image and int for grayscale) for the area outside the transform in the output image (Pillow>=5.0.0). This option is not supported for Tensor input. Fill value @@ -146,7 +148,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -196,15 +198,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_apply.html b/dev/reference/transform_random_apply.html index fa9ac4c..ac7c5f3 100644 --- a/dev/reference/transform_random_apply.html +++ b/dev/reference/transform_random_apply.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,21 +89,23 @@

Apply a list of transformations randomly with a given probability

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
transforms
+
transforms

(list or tuple): list of transformations.

-
p
+
p

(float): probability.

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -153,15 +155,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_choice.html b/dev/reference/transform_random_choice.html index 5b502ca..a506209 100644 --- a/dev/reference/transform_random_choice.html +++ b/dev/reference/transform_random_choice.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,17 +89,19 @@

Apply single transformation randomly picked from a list

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
transforms
+
transforms

(list or tuple): list of transformations.

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -149,15 +151,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_crop.html b/dev/reference/transform_random_crop.html index 6ddc24f..ba8f06e 100644 --- a/dev/reference/transform_random_crop.html +++ b/dev/reference/transform_random_crop.html @@ -11,7 +11,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -100,19 +100,21 @@

Crop the given image at a random location

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
size
+
size

(sequence or int): Desired output size. If size is a sequence -like (h, w), output size will be matched to this. If size is an int, +like c(h, w), output size will be matched to this. If size is an int, smaller edge of the image will be matched to this number. i.e, if height > width, then image will be rescaled to (size * height / width, size).

-
padding
+
padding

(int or tuple or list): Padding on each border. If a single int is provided this is used to pad all borders. If tuple of length 2 is provided this is the padding on left/right and top/bottom respectively. @@ -120,20 +122,20 @@

Arguments

top and bottom borders respectively.

-
pad_if_needed
+
pad_if_needed

(boolean): It will pad the image if smaller than the desired size to avoid raising an exception. Since cropping is done after padding, the padding seems to be done at a random offset.

-
fill
+
fill

(int or str or tuple): Pixel fill value for constant fill. Default is 0. If a tuple of length 3, it is used to fill R, G, B channels respectively. This value is only used when the padding_mode is constant. Only int value is supported for Tensors.

-
padding_mode
+
padding_mode

Type of padding. Should be: constant, edge, reflect or symmetric. Default is constant. Mode symmetric is not yet supported for Tensor inputs.

  • constant: pads with a constant value, this value is specified with fill

  • @@ -149,7 +151,7 @@

    Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -199,15 +201,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_erasing.html b/dev/reference/transform_random_erasing.html index 99ee500..4f4e214 100644 --- a/dev/reference/transform_random_erasing.html +++ b/dev/reference/transform_random_erasing.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -98,36 +98,38 @@

Randomly selects a rectangular region in an image and erases its pixel value

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
p
+
p

probability that the random erasing operation will be performed.

-
scale
+
scale

range of proportion of erased area against input image.

-
ratio
+
ratio

range of aspect ratio of erased area.

-
value
+
value

erasing value. Default is 0. If a single int, it is used to erase all pixels. If a tuple of length 3, it is used to erase R, G, B channels respectively. If a str of 'random', erasing each pixel with random values.

-
inplace
+
inplace

boolean to make this transform inplace. Default set to FALSE.

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -177,15 +179,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_grayscale.html b/dev/reference/transform_random_grayscale.html index dc12d34..3017e7b 100644 --- a/dev/reference/transform_random_grayscale.html +++ b/dev/reference/transform_random_grayscale.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,18 +89,20 @@

Randomly convert image to grayscale with a given probability

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
p
+
p

(float): probability that image should be converted to grayscale (default 0.1).

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -150,15 +152,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_horizontal_flip.html b/dev/reference/transform_random_horizontal_flip.html index ea518e6..7fd40ce 100644 --- a/dev/reference/transform_random_horizontal_flip.html +++ b/dev/reference/transform_random_horizontal_flip.html @@ -12,7 +12,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -95,18 +95,20 @@

Horizontally flip an image randomly with a given probability

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
p
+
p

(float): probability of the image being flipped. Default value is 0.5

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -156,15 +158,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_order.html b/dev/reference/transform_random_order.html index 191f786..32d1854 100644 --- a/dev/reference/transform_random_order.html +++ b/dev/reference/transform_random_order.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,17 +89,19 @@

Apply a list of transformations in a random order

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
transforms
+
transforms

(list or tuple): list of transformations.

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -149,15 +151,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_perspective.html b/dev/reference/transform_random_perspective.html index af12bcc..31faf5b 100644 --- a/dev/reference/transform_random_perspective.html +++ b/dev/reference/transform_random_perspective.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -97,26 +97,28 @@

Random perspective transformation of an image with a given probability

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
distortion_scale
+
distortion_scale

(float): argument to control the degree of distortion and ranges from 0 to 1. Default is 0.5.

-
p
+
p

(float): probability of the image being transformed. Default is 0.5.

-
interpolation
+
interpolation

(int, optional) Desired interpolation. An integer 0 = nearest, 2 = bilinear, and 3 = bicubic or a name from magick::filter_types().

-
fill
+
fill

(int or str or tuple): Pixel fill value for constant fill. Default is 0. If a tuple of length 3, it is used to fill R, G, B channels respectively. This value is only used when the padding_mode is constant. @@ -125,7 +127,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -175,15 +177,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_resized_crop.html b/dev/reference/transform_random_resized_crop.html index de5422a..5e32bdb 100644 --- a/dev/reference/transform_random_resized_crop.html +++ b/dev/reference/transform_random_resized_crop.html @@ -12,7 +12,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -101,28 +101,30 @@

Crop image to random size and aspect ratio

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
size
+
size

(sequence or int): Desired output size. If size is a sequence -like (h, w), output size will be matched to this. If size is an int, +like c(h, w), output size will be matched to this. If size is an int, smaller edge of the image will be matched to this number. i.e, if height > width, then image will be rescaled to (size * height / width, size).

-
scale
+
scale

(tuple of float): range of size of the origin size cropped

-
ratio
+
ratio

(tuple of float): range of aspect ratio of the origin aspect ratio cropped.

-
interpolation
+
interpolation

(int, optional) Desired interpolation. An integer 0 = nearest, 2 = bilinear, and 3 = bicubic or a name from magick::filter_types().

@@ -137,7 +139,7 @@

Details

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -187,15 +189,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_rotation.html b/dev/reference/transform_random_rotation.html index f850de7..2f97573 100644 --- a/dev/reference/transform_random_rotation.html +++ b/dev/reference/transform_random_rotation.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -96,34 +96,36 @@

Rotate the image by angle

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
degrees
+
degrees

(sequence or float or int): Range of degrees to select from. -If degrees is a number instead of sequence like (min, max), the range of +If degrees is a number instead of sequence like c(min, max), the range of degrees will be (-degrees, +degrees).

-
resample
+
resample

(int, optional): An optional resampling filter. See interpolation modes.

-
expand
+
expand

(bool, optional): Optional expansion flag. If true, expands the output to make it large enough to hold the entire rotated image. If false or omitted, make the output image the same size as the input image. Note that the expand flag assumes rotation around the center and no translation.

-
center
-

(list or tuple, optional): Optional center of rotation, (x, y). +

center
+

(list or tuple, optional): Optional center of rotation, c(x, y). Origin is the upper left corner. Default is the center of the image.

-
fill
+
fill

(n-tuple or int or float): Pixel fill value for area outside the rotated image. If int or float, the value is used for all bands respectively. Defaults to 0 for all bands. This option is only available @@ -133,7 +135,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -183,15 +185,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_random_vertical_flip.html b/dev/reference/transform_random_vertical_flip.html index 6b313ed..7d59106 100644 --- a/dev/reference/transform_random_vertical_flip.html +++ b/dev/reference/transform_random_vertical_flip.html @@ -11,7 +11,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -93,18 +93,20 @@

Vertically flip an image randomly with a given probability

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
p
+
p

(float): probability of the image being flipped. Default value is 0.5

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -154,15 +156,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_resize.html b/dev/reference/transform_resize.html index 22a577f..69f7da4 100644 --- a/dev/reference/transform_resize.html +++ b/dev/reference/transform_resize.html @@ -11,7 +11,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -93,19 +93,21 @@

Resize the input image to the given size

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
size
+
size

(sequence or int): Desired output size. If size is a sequence -like (h, w), output size will be matched to this. If size is an int, +like c(h, w), output size will be matched to this. If size is an int, smaller edge of the image will be matched to this number. i.e, if height > width, then image will be rescaled to (size * height / width, size).

-
interpolation
+
interpolation

(int, optional) Desired interpolation. An integer 0 = nearest, 2 = bilinear, and 3 = bicubic or a name from magick::filter_types().

@@ -113,7 +115,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -163,15 +165,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_resized_crop.html b/dev/reference/transform_resized_crop.html index 1820cc2..f7eae43 100644 --- a/dev/reference/transform_resized_crop.html +++ b/dev/reference/transform_resized_crop.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,36 +89,38 @@

Crop an image and resize it to a desired size

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
top
+
top

(int): Vertical component of the top left corner of the crop box.

-
left
+
left

(int): Horizontal component of the top left corner of the crop box.

-
height
+
height

(int): Height of the crop box.

-
width
+
width

(int): Width of the crop box.

-
size
+
size

(sequence or int): Desired output size. If size is a sequence -like (h, w), output size will be matched to this. If size is an int, +like c(h, w), output size will be matched to this. If size is an int, smaller edge of the image will be matched to this number. i.e, if height > width, then image will be rescaled to (size * height / width, size).

-
interpolation
+
interpolation

(int, optional) Desired interpolation. An integer 0 = nearest, 2 = bilinear, and 3 = bicubic or a name from magick::filter_types().

@@ -126,7 +128,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -176,15 +178,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_rgb_to_grayscale.html b/dev/reference/transform_rgb_to_grayscale.html index ce282a2..08109f1 100644 --- a/dev/reference/transform_rgb_to_grayscale.html +++ b/dev/reference/transform_rgb_to_grayscale.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -91,13 +91,15 @@

Convert RGB Image Tensor to Grayscale

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -147,15 +149,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_rotate.html b/dev/reference/transform_rotate.html index f382dae..a0b192a 100644 --- a/dev/reference/transform_rotate.html +++ b/dev/reference/transform_rotate.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -96,33 +96,35 @@

Angular rotation of an image

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
angle
+
angle

(float or int): rotation angle value in degrees, counter-clockwise.

-
resample
+
resample

(int, optional): An optional resampling filter. See interpolation modes.

-
expand
+
expand

(bool, optional): Optional expansion flag. If true, expands the output to make it large enough to hold the entire rotated image. If false or omitted, make the output image the same size as the input image. Note that the expand flag assumes rotation around the center and no translation.

-
center
-

(list or tuple, optional): Optional center of rotation, (x, y). +

center
+

(list or tuple, optional): Optional center of rotation, c(x, y). Origin is the upper left corner. Default is the center of the image.

-
fill
+
fill

(n-tuple or int or float): Pixel fill value for area outside the rotated image. If int or float, the value is used for all bands respectively. Defaults to 0 for all bands. This option is only available @@ -132,7 +134,7 @@

Arguments

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -182,15 +184,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_ten_crop.html b/dev/reference/transform_ten_crop.html index 3dddf72..ecd33bb 100644 --- a/dev/reference/transform_ten_crop.html +++ b/dev/reference/transform_ten_crop.html @@ -12,7 +12,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -95,25 +95,27 @@

Crop an image and the flipped image each into four corners and a central cro

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

-
size
+
size

(sequence or int): Desired output size. If size is a sequence -like (h, w), output size will be matched to this. If size is an int, +like c(h, w), output size will be matched to this. If size is an int, smaller edge of the image will be matched to this number. i.e, if height > width, then image will be rescaled to (size * height / width, size).

-
vertical_flip
+
vertical_flip

(bool): Use vertical flipping instead of horizontal

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -163,15 +165,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_to_tensor.html b/dev/reference/transform_to_tensor.html index dcdea30..9a43730 100644 --- a/dev/reference/transform_to_tensor.html +++ b/dev/reference/transform_to_tensor.html @@ -11,7 +11,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -93,7 +93,9 @@

Convert an image to a tensor

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

@@ -104,7 +106,7 @@

Note

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -154,15 +156,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/transform_vflip.html b/dev/reference/transform_vflip.html index b7e2561..cba8931 100644 --- a/dev/reference/transform_vflip.html +++ b/dev/reference/transform_vflip.html @@ -9,7 +9,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -89,13 +89,15 @@

Vertically flip a PIL Image or Tensor

Arguments

-
img
+ + +
img

A magick-image, array or torch_tensor.

See also

-

Other transforms: +

Other transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), @@ -145,15 +147,15 @@

See also

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/reference/vision_make_grid.html b/dev/reference/vision_make_grid.html index d2055a8..3a350f0 100644 --- a/dev/reference/vision_make_grid.html +++ b/dev/reference/vision_make_grid.html @@ -10,7 +10,7 @@ gtag('config', 'G-HD24T4Z9Z3'); - +
- +
@@ -97,23 +97,25 @@

A simplified version of torchvision.utils.make_grid

Arguments

-
tensor
+ + +
tensor

tensor to arrange in grid.

-
scale
+
scale

whether to normalize (min-max-scale) the input tensor.

-
num_rows
+
num_rows

number of rows making up the grid (default 8).

-
padding
+
padding

amount of padding between batch images (default 2).

-
pad_value
+
pad_value

pixel value to use for padding.

@@ -130,15 +132,15 @@

Arguments

-

Site built with pkgdown 2.0.9.

+

Site built with pkgdown 2.1.0.

- - + + diff --git a/dev/sitemap.xml b/dev/sitemap.xml index d432611..8c38b31 100644 --- a/dev/sitemap.xml +++ b/dev/sitemap.xml @@ -1,204 +1,70 @@ - - - - /LICENSE-text.html - - - /LICENSE.html - - - /articles/examples/mnist-cnn.html - - - /articles/examples/mnist-dcgan.html - - - /articles/examples/mnist-mlp.html - - - /articles/examples/style-transfer.html - - - /articles/examples/texture-nca.html - - - /articles/examples/tinyimagenet-alexnet.html - - - /articles/index.html - - - /authors.html - - - /index.html - - - /news/index.html - - - /reference/base_loader.html - - - /reference/cifar10_dataset.html - - - /reference/draw_bounding_boxes.html - - - /reference/draw_keypoints.html - - - /reference/draw_segmentation_masks.html - - - /reference/image_folder_dataset.html - - - /reference/index.html - - - /reference/kmnist_dataset.html - - - /reference/magick_loader.html - - - /reference/mnist_dataset.html - - - /reference/model_alexnet.html - - - /reference/model_inception_v3.html - - - /reference/model_mobilenet_v2.html - - - /reference/model_resnet.html - - - /reference/model_vgg.html - - - /reference/tensor_image_browse.html - - - /reference/tensor_image_display.html - - - /reference/tiny_imagenet_dataset.html - - - /reference/transform_adjust_brightness.html - - - /reference/transform_adjust_contrast.html - - - /reference/transform_adjust_gamma.html - - - /reference/transform_adjust_hue.html - - - /reference/transform_adjust_saturation.html - - - /reference/transform_affine.html - - - /reference/transform_center_crop.html - - - /reference/transform_color_jitter.html - - - /reference/transform_convert_image_dtype.html - - - /reference/transform_crop.html - - - /reference/transform_five_crop.html - - - /reference/transform_grayscale.html - - - /reference/transform_hflip.html - - - /reference/transform_linear_transformation.html - - - /reference/transform_normalize.html - - - /reference/transform_pad.html - - - /reference/transform_perspective.html - - - /reference/transform_random_affine.html - - - /reference/transform_random_apply.html - - - /reference/transform_random_choice.html - - - /reference/transform_random_crop.html - - - /reference/transform_random_erasing.html - - - /reference/transform_random_grayscale.html - - - /reference/transform_random_horizontal_flip.html - - - /reference/transform_random_order.html - - - /reference/transform_random_perspective.html - - - /reference/transform_random_resized_crop.html - - - /reference/transform_random_rotation.html - - - /reference/transform_random_vertical_flip.html - - - /reference/transform_resize.html - - - /reference/transform_resized_crop.html - - - /reference/transform_rgb_to_grayscale.html - - - /reference/transform_rotate.html - - - /reference/transform_ten_crop.html - - - /reference/transform_to_tensor.html - - - /reference/transform_vflip.html - - - /reference/vision_make_grid.html - + +/LICENSE-text.html +/LICENSE.html +/articles/examples/mnist-cnn.html +/articles/examples/mnist-dcgan.html +/articles/examples/mnist-mlp.html +/articles/examples/style-transfer.html +/articles/examples/texture-nca.html +/articles/examples/tinyimagenet-alexnet.html +/articles/index.html +/authors.html +/index.html +/news/index.html +/reference/base_loader.html +/reference/cifar10_dataset.html +/reference/draw_bounding_boxes.html +/reference/draw_keypoints.html +/reference/draw_segmentation_masks.html +/reference/image_folder_dataset.html +/reference/index.html +/reference/kmnist_dataset.html +/reference/magick_loader.html +/reference/mnist_dataset.html +/reference/model_alexnet.html +/reference/model_inception_v3.html +/reference/model_mobilenet_v2.html +/reference/model_resnet.html +/reference/model_vgg.html +/reference/tensor_image_browse.html +/reference/tensor_image_display.html +/reference/tiny_imagenet_dataset.html +/reference/transform_adjust_brightness.html +/reference/transform_adjust_contrast.html +/reference/transform_adjust_gamma.html +/reference/transform_adjust_hue.html +/reference/transform_adjust_saturation.html +/reference/transform_affine.html +/reference/transform_center_crop.html +/reference/transform_color_jitter.html +/reference/transform_convert_image_dtype.html +/reference/transform_crop.html +/reference/transform_five_crop.html +/reference/transform_grayscale.html +/reference/transform_hflip.html +/reference/transform_linear_transformation.html +/reference/transform_normalize.html +/reference/transform_pad.html +/reference/transform_perspective.html +/reference/transform_random_affine.html +/reference/transform_random_apply.html +/reference/transform_random_choice.html +/reference/transform_random_crop.html +/reference/transform_random_erasing.html +/reference/transform_random_grayscale.html +/reference/transform_random_horizontal_flip.html +/reference/transform_random_order.html +/reference/transform_random_perspective.html +/reference/transform_random_resized_crop.html +/reference/transform_random_rotation.html +/reference/transform_random_vertical_flip.html +/reference/transform_resize.html +/reference/transform_resized_crop.html +/reference/transform_rgb_to_grayscale.html +/reference/transform_rotate.html +/reference/transform_ten_crop.html +/reference/transform_to_tensor.html +/reference/transform_vflip.html +/reference/vision_make_grid.html +