All Questions
13 questions
0
votes
1
answer
113
views
How do I make each image have the corresponding tag?
with the following code, I augmented some images and I would like to know how I can make each generated image have the corresponding label
I try with save_prefix = +label but it just prints the same ...
1
vote
1
answer
3k
views
Dataset size after data augmentation
After I used the data augmentation, such like
train = ImageDataGenerator(
rotation_range=90,
width_shift_range=0.2,
height_shift_range=0.2,
zca_whitening = True,
...
2
votes
4
answers
874
views
Sampling for large class and augmentation for small classes in each batch
Let's say we have 2 classes one is small and the second is large.
I would like to use for data augmentation similar to ImageDataGenerator
for the small class, and sampling from each batch, in such a ...
0
votes
1
answer
1k
views
Does Keras preprocessing layers apply to the validation set?
I was reading the data augmentation article on Keras and they allow one to make preprocessing layer a part of the model:
model = tf.keras.Sequential([
resize_and_rescale,
data_augmentation,
...
0
votes
1
answer
4k
views
data Augmentation while preserving existing label
Problem statement
I am working on a project using YOLO model to detect tools form given picture.i.e hammer, screwdrivers, bolt etc. I have only 100 pictures as training dataset and I have labelled ...
3
votes
1
answer
2k
views
Keras Data Augmentation with ImageDataGenerator (Your input ran out of data)
I am currently learning how to perform data augmentation with Keras ImageDataGenerator from "Deep learning with Keras" by François Chollet.
I now have 1000 (Dogs) & 1000 (Cats) images in ...
1
vote
1
answer
2k
views
How can I apply the same augmentation to a batch of images?
I have a dataset of videos. Since the dataset is small, I am trying to augment the video data. I have not found any resources on augmenting videos, so what I think will work is -
Extract required ...
0
votes
0
answers
580
views
ImageDataGenerator causes unwanted color changes in images
Finally I have a question for which I didn't find any answer searching stack overflow. :)
I have the issue that the ImageDataGenerator from Keras changes the RGB values of images when it should not.
...
1
vote
2
answers
10k
views
How to convert RGB images to grayscale, expand dimensions of that grayscale image to use in InceptionV3?
I'm training a Keras model and I have training images in RGB format. I want to train my model but on grayscale images on InceptionV3, but it takes RGB images as input. My question is: How can I first ...
0
votes
0
answers
84
views
Single image augmentation using different magnitudes of noise
Is it practical to create a dataset with noise off of just one image? Recently, I have asked here with regards to adding noise to images. I am aware that convolutional neural networks require datasets ...
3
votes
2
answers
11k
views
Plot images from Image Generator
I'm trying to plot the images created by my image generator. So far this is the code of my data given to the generator:
train_img_gen = train_img_data_gen.flow_from_directory(os.path.join(...
2
votes
1
answer
2k
views
Perform Augmentation (using ImageDataGenerator) and save augmented image as original name
I am applying augmentation to 493 classes and each class has 1 or 2 or 3 or 4 images (its not known 1 class may have only 1 image other may have 2 images). When I apply augmentation using ...
0
votes
1
answer
169
views
Why do some images save properly and others don't when using ImageDataGenerator and .flow()?
I have been trying to augment some training data and the corresponding labels using ImageDataGenerator.
Here's the way I've approached it (apologies if the formatting is a bit off)
def create_morph()...