Hasty visionAI Wiki
Website
User documentation
API documentation
Community
Searchโฆ
Getting started
Introduction
Overview of topics
How to contribute
General best practices
Model families ๐พ
Classifier / Taggers
Semantic Segmentor
Object Detector
Instance Segmentor
Attributor
Model architectures ๐
ResNet
Faster R-CNN
Mask R-CNN
DeepLabv3+
U-Net
FBNetV3
U-Net++
PSPNet
Efficient Net
PAN
LinkNet
FPN
RetinaNet
Cascade RCNN
Metrics ๐
Confusion Matrix
IoU (Intersection over Union)
Accuracy
Hamming Score
Precision
Recall
mAP (mean Average Precision)
Average Loss
Loss ๐
Cross-Entropy Loss
Binary Cross-Entropy Loss
Focal Loss
Bounding Box Regression Loss
Solvers / Optimizers ๐งฎ
Epsilon Coefficient
Momentum (SGD)
SGD
ASGD
Adam
AdamW
AdaMax
Adagrad
Rprop
RMSprop
Adadelta
Base Learning Rate
Weight Decay
Schedulers
Warm-Up
CyclicLR
MultiStepLR
StepLR
CosineAnnealingLR
ReduceLROnPlateau
ExponentialLR
Training parameters
Patience
Min delta
Seed
Batch Size
Iterations
Epoch
Augmentations
Horizontal Flip
Vertical Flip
Random Crop
Random Sized Crop
Rotate
Resize
Blur
Smallest max size
Center Crop
Color Jitter
Gaussian Noise
Shift Scale Rotate
Deployment
Primitive deployment using web frameworks
Commonly used web frameworks
Containerized Deployment
Orchestrated Deployment
Challenges of Deployment
Splits
General Information
Random
Stratification
Powered By
GitBook
Vertical Flip
Augments your data by flipping it vertically.
This data augmentation allows the user to vertically flip images with a certain probability.
Parameters
Probability
This produces the probability of vertically flipping each image.
If a large fraction of images needs to be flipped, set a high probability.
Original Image
Vertically flipped image
Code Implementation
1
import albumentations as albu
2
from PIL import Image
3
import numpy as np
4
โ
5
transform =albu.VerticalFlip(p=0.5)
6
image = np.array(Image.open('/some/random/image.png'))
7
augmented_image = transform(image=image)['image']
8
โ
9
# we have our required flipped image in augmented_image.
Copied!
Further Resources
โ
Horizontal Flip
โ
โ
Resize
โ
โ
Random Crop
โ
โ
Random Sized Crop
โ
โ
Rotate
โ
โ
Blur
โ
โ
Gaussian Noise
โ
โ
Augmentations - Previous
Horizontal Flip
Next - Augmentations
Random Crop
Last modified
9mo ago
Copy link
Contents
Parameters
Probability
Code Implementation
Further Resources