Questions tagged [image-augmentation]

84 questions
0
votes
0 answers

How to view images loaded using tf.keras.utils.image_dataset_from_directory and augmented using albumentations?

I am loading a dataset of images using tf.keras.utils.image_dataset_from_directory but I am not sure if the image augmentations are being applied so I want to be able to view some of the images after the augmentation takes place and later for the…
S.M
  • 131
  • 1
  • 11
0
votes
0 answers

Data Augumentation for oversampling

I'm doing a Image Classification on Diabetic Retinopathy. The data distribution is uneven .The images of each label is distributed like this. 0 1805 2 999 1 370 4 295 3 193 The images in label 0 are in high numbers than other . So…
0
votes
1 answer

Augment multiple images and bounding boxes in a folder with different classes

I'm a beginner. I have annotated dataset in YOLO format. I would like to know how to apply the same augmentation pipeline with the same parameters to a folder of images with their corresponding bounding box labels. I have 7 classes in a folder. I…
0
votes
0 answers

Is there any way to use different size of images in CNN model?

I just want to add more images to train/valid in CNN models, and i augment images by rotating. My CNN model is made by tf.keras.models.Sequential(), and I learned to set input_size in layers before started. import cv2 import imutils from PIL import…
0
votes
0 answers

How many images are generated when Image augmentation is used (either for individual image or for all image)

How can I determine how many images will be created after image augmentation via tensorflow ImageDataGenerator. What will be that number for an individual image and likewise all images. I have total 17 image (16 image for train and 1 image for…
Pranab
  • 379
  • 3
  • 11
0
votes
1 answer

Steps per epoch (with image augmentation) not changing with batch size

I have read that one can increase steps per epoch by 2 or 3 times when applying image augmentation. I have also done that in the past with no issue, however this time I've got an error telling me I have run out of training data Another issue I have…
0
votes
1 answer

Tensorflow Multiple Image augmentations that don't have layers

I am using train_data_gen = tf.keras.utils.image_dataset_from_directory(...) AUTOTUNE = tf.data.AUTOTUNE train_data_gen = train_data_gen.cache().prefetch(buffer_size=AUTOTUNE) I want to apply multiple image transforms like it is done in…
0
votes
0 answers

Image_dataset_from_directory with portrait and landscape images

I use tf.keras.utils.image_dataset_from_directory to create an Import Lane to my NN. Importing the image using the right split and lable works without any issues as long as I only have either portrait-images or…
0
votes
0 answers

ValueError: Shapes must be equal rank, but are 1 and 0

I am trying to use albumentations for my image recognition task but I have a little bit of problem while using this library. I have followed the documentation of albumentation in implementing this but I see the following error. ValueError: in user…
0
votes
1 answer

detectron2 - how to verify the number of images after augmentation?

I can see that augmentations were applied but i can't see the resulted size of the training set. How can I check it? It's important because when calculating epochs, the dataset size after augmentation should be considered. When I train a model using…
YonHar
  • 11
  • 1
0
votes
0 answers

Face Position augmentation

Kindly I need your help for any suggestion to increase my "face data set" by position augmentation I mean taking one frontal image and generate (+30 degrees face rotation , -30 degrees face rotation, right side face, left side face, down tilt face,…
dani92
  • 1
  • 1
0
votes
1 answer

Augment a tf.data.Dataset with has image and mask. Both Needs to be augmented

I have a tf.data.Dataset of image paths of image and masks # Creating list of image and mask path all_val_img = np.array(sorted([os.path.join(VAL_DIR,i) for i in os.listdir(VAL_DIR)])) all_val_mask = np.array(sorted([os.path.join(VAL_MASK_DIR,i) for…
tikendraw
  • 451
  • 3
  • 12
0
votes
0 answers

Can anyone please help me with generating new images using GAN?

I've been trying to generate (255x255) images using GAN, although I am able to train and generate 28x28 MNIST images, but I'm not able to generate custom images. I tried changing a lot of parameters in generator and discriminator networks, but I'm…
0
votes
1 answer

Data generator for image classification

I'm trying to create a data generator for my CNN project(using a sequential model in keras). Due to the large amount of data, I need to keep flowing data to the model training so I dont get OOM on RAM. However, I'm having some trouble with creating…
0
votes
0 answers

Image Augmentation not altering my images at all

I am trying to implement some image augmentation to my dataset of brain scan MRIs. I'm using the same code from the TensorFlow tutorial page, yet it does not seem to be augmenting my images at all: data_augmentation = keras.Sequential( [ …
Lookdatway
  • 17
  • 1
  • 5