torch-resize-images - PyPI
https://pypi.org/project/torch-resize-images19.03.2021 · Install torch-resize-images using pip: ` pip install torch-resize-images ` ## Usage. Given images in some <input_dir>, the following line first resizes and then center-crops all images to the size 224x224. ` torch-resize-r <input_dir> -o <output_dir> --width 224 --height 224 `
torchvision.transforms — Torchvision 0.11.0 documentation
https://pytorch.org/vision/stable/transforms.htmlclass torchvision.transforms.ColorJitter(brightness=0, contrast=0, saturation=0, hue=0) [source] Randomly change the brightness, contrast, saturation and hue of an image. If the image is torch Tensor, it is expected to have […, 1 or 3, H, W] shape, where … means an arbitrary number of leading dimensions.