Questions tagged [image-augmentation]

84 questions
1
vote
0 answers

Imageio and cv2 Read Image - jpeg

I am working on augmenting some images and I have run not necessary into a problem, but something that struck me as odd. For most of my augmentation methods I am using the Imgaug library and using imageio.imread to read my files. Though for my…
Binx
  • 382
  • 7
  • 22
0
votes
0 answers

Adding touchdesigner project to Unity?

I'd like to find a way to add a touchdesigner output to unity as a plane that displays the unity output? The idea is to have a screen showing the webcam however if I use touchdesigner rather than a webcam texture I can add auto zoom and tracking…
0
votes
1 answer

TF Keras - Image augmentation whilst excluding one class but recombining the data later on for use with an ImageDataGenerator object

I'm trying to augment the ISIC 2019 dataset images with 9 classes. The 'NV' class is overrepresented (12876 of a total of 25331 images) so I'd like to exclude it from the augmentation process but later on recombine the augmented images and the…
0
votes
0 answers

YOLO v8 automatic augmentation in the fly

i cant find correct information in the internet. I 'd like to know if Yolo v8 automaticy augments training set and how can i menage this process. Can i somehow see how much there is newly created images(durging augmentation) and see the preview of…
Krystian
  • 1
  • 1
0
votes
0 answers

Augmentation and transformations in Detectron2

I'm working on a custom Faster RCNN with Detectron2 framework and I have a doubt about transformation during training and inference. I created a custom Trainer inheriting from DefaultTrainer class and I overridden build_train_loader and…
0
votes
0 answers

How to use rectangular image for CNN training to segment objects from square images?

Dear audience of Stackoverflow, I am a student and I have a task to segment concrete components (coarse aggregates, voids and cracks) from X-ray CT images.  I have started to study the DL and I think that the best way in my segmentation case is…
0
votes
0 answers

Data augmentation using keras.layers.RandomRotation() doesnt yield same results

In my project I have dataset of original images and correcponding masks. I want to perform augmentation so it is random, yet same for image and matching mask. For this I have defined keras sequential layer rotation_1 and rotation_2 with same seed.…
0
votes
0 answers

Image_Augmentation along with annotations

I am planning to create augmented images and I do also have an annotation file along with .jpg/.jpeg/.png file. The task is to create photos along with annotations consistent with the annotations I already have. Kindly help me in this regard. I…
0
votes
0 answers

How to improve performance metrics of Deep learning model (VGG 19)?

I collected this code and got great accuracy on training and validation accuracy (more than 90%). But it shows a disastrous performance metrics. Here is the collected code: from google.colab import drive drive.mount('/content/drive') import numpy…
0
votes
1 answer

Checking Data Augmentation in Pytorch

i used image augmentation in pytorch before training in unet like this class ProcessTrainDataset(Dataset): def __init__(self, x, y): self.x = x self.y = y self.pre_process = transforms.Compose([ …
anastasia
  • 13
  • 4
0
votes
0 answers

Apply customized augmentations using tensorflow object detection api

I'm quite new to tensorflow and I was trying to train an object detector using their api. I was wondering if there is a way to pass customized augmentations in the .config file or include them in some other way in the preprocessing step. For…
0
votes
0 answers

Implementing cutmix and mix up data augmentation in image data generator

At this point of time the following works perfectly when it comes to data augmentation datagen = ImageDataGenerator( rotation_range=20, # randomly rotate images by up to 20 degrees width_shift_range=0.1, # randomly shift images horizontally…
Sadaf Shafi
  • 1,016
  • 11
  • 27
0
votes
1 answer

How does data augmentation work with preprocessing function that is called with map method

In a tutorial I found this code to do data augmentation: def preprocess_with_augmentation(image, label): resized_image = tf.image.resize(image, [224, 224]) # data augmentation with Tensorflow augmented_image =…
0
votes
0 answers

Image augmentation tensforflow

I want to apply data augmentation to my images to help with over-fitting. In my training dataset, there are 25 classes and 7982 images. I loaded the traning images using the code below: Loading data train_images =…
0
votes
1 answer

want to know how can i solved this error "cannot select an axis to squeeze out which has size not equal to one"

plt.figure(figsize=(10, 10)) for images, labels in x_train: plt.imshow(np.squeeze(images,0)) plt.title('Color map: Magma'+str(labels\[0,0\])) plt.axis("off") break ValueError: cannot select an axis to squeeze out which has size not equal to one I…
Amresh
  • 1