Questions tagged [data-augmentation]

Data augmentation

Data augmentation is the technique of increasing the size of data used for training a model. It also helps in preventing overfitting.

Some of the most common data augmentation techniques for images include:

  • Scaling
  • Cropping
  • Flipping
  • Rotation
  • Color jittering
465 questions
-1
votes
1 answer

How to solve the "ValueError: 0 is not in range" when I fit data with CNN model using custom data generator in python ?(tf.Keras.utils.Sequence))

I want to apply augmentation on voice samples on the fly. I tested My custom voice augmentation data generator and it seems it works well. but when I fit in the CNN model, I get the following error: Due to the limitation for uploading the codes, I…
-1
votes
1 answer

Evaluation of generative models like variational autoencoder

i hope everyone is doing well I need some help with generative models. So im working on a project where the main task is to build a binary classification model. In the dataset which contains 300000 sample and 100 feature, there is an imbalance…
-1
votes
1 answer

augemtation error, tensorflow.python.keras.preprocessing.image.ImageDataGenerator

Failed to find data adapter that can handle input: , I am trying to implement deep learning model and I have run the code more than 10 times , some times in…
-1
votes
1 answer

Image Data generating for data augmentation

I am working on image classification by transfer learning in the 12 several classes of the dataset. However, I am facing overfitting. As a result, I applied data augmentation (Maybe flying) for recovering the overfitting but that unable to…
-1
votes
1 answer

Augmented Images consists of empty arrays whereas Original images consists of arrays with values. Why is it so?

I change the extensions of all .png images to .jpeg inside a folder and also renamed them into using this code, # Define directories INPUT = 'input dir' OUTPUT = 'output dir' for count, filename in enumerate(os.listdir(INPUT)): dst =…
-1
votes
2 answers

Is there a python code for image data augmentation for the whole data set?

I'm working on CNN(Convolution Neural Network) for image classification problem. I have a data set of 1000 images, this images are not enough to fit the model I have designed and I want to increase the number of images before training the CNN. How…
Yidne
  • 801
  • 1
  • 6
  • 9
-1
votes
3 answers

How to augment long string containing (0,1,2,3,4,5,6,?) by replacing a '?' with the the largest neighboring number?

I'm trying to augment a lengthy string that can contain multiple number of digits (0,1,2,3,4,5,6,?) Consider a string "000000000004?0??100001??2?0?10000000". I'm trying to replace all the question marks (?) by the neighbouring largest digit. The…
-1
votes
3 answers

Keras ImageDataGenarator: Inconsistency in flow functions parameter

I am struggling with the image augmentation in Keras. The concept, where I define an ImageDataGenerator to modify the data and a flow function to apply it to the data is (or seems) clear to me. But why are the flow functions (flow,…
Martin
  • 594
  • 1
  • 8
  • 32
-2
votes
0 answers

Pytorch Data Augmentation

What is the best way to execute data augmentation in Pytorch? I created a regression UNet to predict a cell service coverage map. I want to add data augmentation. I already have the dataset and transforms complete (pasted below), but I don't know…
-2
votes
1 answer

How to reduce contrast of a NumPy array?

I want to reduce the contrast of my whole dataset as an experiment. The dataset is in a NumPy array of np.array(X).reshape(-1, 28, 28, 1) I tried to use the library Albumentations, which works really well for motion blur and Gaussian noise, but I…
-2
votes
2 answers

Image data augmentation

I am doing a computer vision project and I need to apply data augmentation. I have 3 classes : two classes with 500 images and a class with 1000 images. I am going to generate multiple versions of the images with data augmentation, should I apply…
SSSSSSSSS
  • 1
  • 3
-2
votes
2 answers

Should we train the original data point when we do data augmentation?

I am confused about the definition of data augmentation. Should we train the original data points and the transformed ones or just the transformed? If we train both, then we will increase the size of the dataset while the second approach won't. I…
-2
votes
1 answer

how to do data augmentation for text (object detection) in image

I'm doing object detection for texts in image and want to use Yolo to draw a bounding box where the text is in the image. Then, how do you do data augmentation? Also, what is the difference between augmentation (contrast adjustment, gamma…
-3
votes
1 answer

How do I augment images using keras ImageDataGenerator?

I have training set of 364 images stored in numpy array also its labels stored in a different numpy array(there are 8 labels to classify).The dataset being small I want to use augmentation but can only find resources which augment images if they are…
-4
votes
1 answer

Keyerror: ID during adding of this line df4 = pd.read_csv('../input/riadd-dataset/RFMiD_Training_Labels.csv',sep='\t')

When i am writing this line df4 = pd.read_csv('../input/riadd-dataset/RFMiD_Training_Labels.csv',sep='\t') this shows me the following error shown below. File "", line 14, in df =…
Bali Akanksha
  • 23
  • 2
  • 7
1 2 3
30
31