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
Epoch
Iterations
Seed
Min delta
Patience
Batch Size
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
Horizontal Flip
Augments your data by flipping it horizontally.
This data augmentation allows you to horizontally flip images with a certain probability.
Parameters
Probability
This produces the probability of horizontally flipping each image.
Original Image
Horizontally flipped Image
If a large fraction of training images needs to be flipped, set a high probability.
Code Implementation
1
import albumentations as albu
2
from PIL import Image
3
import numpy as np
4
โ
5
transform =albu.HorizontalFlip(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
โ
Vertical Flip
โ
โ
Resize
โ
โ
Random Crop
โ
โ
Random Sized Crop
โ
โ
Rotate
โ
โ
Blur
โ
โ
Gaussian Noise
โ
Training Parameters - Previous
Batch Size
Next - Augmentations
Vertical Flip
Last modified
10mo ago
Copy link
Contents
Parameters
Probability
Code Implementation
Further Resources