All Projects → pratogab → batch-transforms

pratogab / batch-transforms

Licence: MIT license
Batch equivalent of PyTorch Transforms.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to batch-transforms

torchgeo
TorchGeo: datasets, samplers, transforms, and pre-trained models for geospatial data
Stars: ✭ 1,125 (+3309.09%)
Mutual labels:  transforms, torchvision
Transferee
一个帮助您完成从缩略视图到原视图无缝过渡转变的神奇框架
Stars: ✭ 2,697 (+8072.73%)
Mutual labels:  images, transform
av.imageview
Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
Stars: ✭ 97 (+193.94%)
Mutual labels:  images
etiketai
Etiketai is an online tool designed to label images, useful for training AI models
Stars: ✭ 63 (+90.91%)
Mutual labels:  images
minecraft-start-bat-creator
This bat aims to create a start.bat while optionally installing the latest paper.jar and/or installing a new java
Stars: ✭ 10 (-69.7%)
Mutual labels:  batch
GraphOne
"GraphOne: A Data Store for Real-time Analytics on Evolving Graphs", Usenix FAST'19
Stars: ✭ 46 (+39.39%)
Mutual labels:  batch
ts-transform-react-constant-elements
A TypeScript AST Transformer that can speed up reconciliation and reduce garbage collection pressure by hoisting React elements to the highest possible scope.
Stars: ✭ 44 (+33.33%)
Mutual labels:  transform
html5-kitchen-sink
🚰 Sample markup containing all HTML5 elements for jumpstarting/testing css
Stars: ✭ 290 (+778.79%)
Mutual labels:  normalize
Jetson-Nano-image
Jetson Nano image with deep learning frameworks
Stars: ✭ 46 (+39.39%)
Mutual labels:  torchvision
Batch-First
A JIT compiled chess engine which traverses the search tree in batches in a best-first manner, allowing for neural network batching, asynchronous GPU use, and vectorized CPU computations.
Stars: ✭ 27 (-18.18%)
Mutual labels:  batch
ImageTrans
一个仿微信的图片查看过渡动画demo 支持拖动图片手势返回 ,缩略图与原图无缝切换
Stars: ✭ 42 (+27.27%)
Mutual labels:  transform
ColorVectorSpace.jl
Treat colors as if they are n-vectors for the purposes of arithmetic
Stars: ✭ 28 (-15.15%)
Mutual labels:  images
osbuild
Build-Pipelines for Operating System Artifacts
Stars: ✭ 95 (+187.88%)
Mutual labels:  images
lut
color lookup tables (LUTs) for color grading
Stars: ✭ 84 (+154.55%)
Mutual labels:  images
XYFSnowAnimation
A category of NSTimer for showing 3D Fluttered animation for iOS, which is used very simply. Lightweight CALayer animation, core animation, 3D transform, performance safety. iOS 3D三维飘落下雪落花动画,轻量级CALayer图层动画,核心动画,3D形变,性能安全,定时器NSTimer分类,直接使用,很简单
Stars: ✭ 15 (-54.55%)
Mutual labels:  transform
json-to-html-converter
Converts JSON data to HTML table with collapsible details view for nested objects.
Stars: ✭ 13 (-60.61%)
Mutual labels:  transform
Defeat-Defender-V1.2
Powerful batch script to dismantle complete windows defender protection and even bypass tamper protection ..Disable Windows-Defender Permanently....Hack windows. POC
Stars: ✭ 885 (+2581.82%)
Mutual labels:  batch
use-images-loaded
🖼️ Returns true once all the images inside a container are loaded
Stars: ✭ 82 (+148.48%)
Mutual labels:  images
KGrabber
Userscript for extracting links from kissanime.ru and similar sites.
Stars: ✭ 29 (-12.12%)
Mutual labels:  batch
Floral
Minimal design gallery app for Android.
Stars: ✭ 23 (-30.3%)
Mutual labels:  images

Batch Transforms

Batch equivalent of PyTorch Transforms.

transform_batch = transforms.Compose([
    ToTensor(),
    Normalize((0.485, 0.456, 0.406), (0.229, 0.224, 0.225))])

for images in data_iterator:
    images = transform_batch(images)
    output = model(images)

Normalize

Applies the equivalent of torchvision.transforms.Normalize to a batch of images.

Note: This transform acts out of place by default, i.e., it does not mutate the input tensor.

__init__(mean, std, inplace=False, dtype=torch.float, device='cpu')

  • mean (sequence) – Sequence of means for each channel.
  • std (sequence) – Sequence of standard deviations for each channel.
  • inplace (bool,optional) – Bool to make this operation in-place.
  • dtype (torch.dtype,optional) – The data type of tensors to which the transform will be applied.
  • device (torch.device,optional) – The device of tensors to which the transform will be applied.

__call__(tensor)

  • tensor (Tensor) – Tensor of size (N, C, H, W) to be normalized.

 

RandomCrop

Applies the equivalent of torchvision.transforms.RandomCrop to a batch of images. Images are independently transformed.

__init__(size, padding=None, device='cpu')

  • size (int) – Desired output size of the crop.
  • padding (int, optional) – Optional padding on each border of the image. Default is None, i.e no padding.
  • device (torch.device,optional) – The device of tensors to which the transform will be applied.

__call__(tensor)

  • tensor (Tensor) – Tensor of size (N, C, H, W) to be randomly cropped.

 

RandomHorizontalFlip

Applies the equivalent of torchvision.transforms.RandomHorizontalFlip to a batch of images. Images are independently transformed.

Note: This transform acts out of place by default, i.e., it does not mutate the input tensor.

__init__(p=0.5, inplace=False)

  • p (float) – probability of an image being flipped.
  • inplace (bool,optional) – Bool to make this operation in-place.

__call__(tensor)

  • tensor (Tensor) – Tensor of size (N, C, H, W) to be randomly flipped.

 

ToTensor

Applies the equivalent of torchvision.transforms.ToTensor to a batch of images.

__init__()

__call__(tensor)

  • tensor (Tensor) – Tensor of size (N, C, H, W) to be tensorized.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].