Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
111 views

We are using YOLO for object detection in satellite images to detect greenhouses. I'm annotating images through Roboflow. I've downloaded satellite images with different zoom levels. (zoom level means ...
Akila premarathna's user avatar
0 votes
0 answers
74 views

I'm new to tensorflow. I want to generate more images after image augmentation but images and labels are (10, None, 400, 400, 3) and (10, None, 1) respectively and I guess it artifically count as 1 ...
CChickii's user avatar
0 votes
0 answers
56 views

according to me, the given code should create 5700 images, which is 10 times the number of original images, instead, when I check the shape of it, it only gives 1140, which is twice the number of ...
dhruv Gangwani's user avatar
1 vote
1 answer
111 views

I'm following a tutorial on data augmentation by aladdin persson. In the tutorial, some preprocessing modules in tensorflow were still being experimented as at time (3yrs ago) such as RandomFlip, ...
Isesele Victor's user avatar
0 votes
1 answer
3k views

I am trying to implement prime augmentation on my dataset. Previously I was getting error raise ValueError('pic should be 2/3 dimensional. Got {} dimensions.'.format(pic.ndim)) ValueError: pic should ...
sccomp's user avatar
  • 17
0 votes
0 answers
490 views

I am trying to implement an augmentation function to my images and masks, I have defined the augmentations like below: if config.AUG == "PRIMEAugmentation": augmentations = [autocontrast,...
sccomp's user avatar
  • 17
0 votes
1 answer
83 views

I am trying to implement an augmentation function to my images and masks, I have defined the augmentations like below: if config.AUG == "PRIMEAugmentation": augmentations = [autocontrast,...
sccomp's user avatar
  • 17
0 votes
1 answer
73 views

I want to create an image dataset of leaf dataset. For this i captured images and found 6 classes, each classes has roughly 70-60 images. Noe while creating training and validation set, i know i ...
NazmulNafim's user avatar
0 votes
1 answer
37 views

This is my code. I have defined various operations like this: def identity(pil_img, pil_mask, _): return pil_img, pil_mask def autocontrast(pil_img, pil_mask, _): return ImageOps.autocontrast(...
Green_Cat's user avatar
1 vote
2 answers
1k views

I am trying to write a simple code to teach resnet50 on ImageNet dataset. I don't quite get why normalization does not work. When I use this transformation as data augmentation: train_transforms = ...
Chuck's user avatar
  • 65
0 votes
1 answer
598 views

I'm trying to expand the volume of my dataset using an image augmentation package called albumentations. I have 1145 images and their corresponding annotations labelled in Yolo format. I'm having a ...
baibhab07's user avatar
0 votes
1 answer
180 views

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 ...
mongoq's user avatar
  • 21
1 vote
1 answer
754 views

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 ...
Agostino Dorano's user avatar
1 vote
0 answers
1k views

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 ...
Jan Mareš's user avatar
0 votes
1 answer
368 views

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....
anastasia's user avatar
0 votes
1 answer
194 views

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 ...
Eddy-Python's user avatar
4 votes
2 answers
12k views

I have found this simple code below on some internet page, but I'm getting an error trying to execute it on my laptop. It should display an image with some bounding boxes on it. The error occurs not ...
tomxor's user avatar
  • 41
0 votes
1 answer
296 views

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 ...
Amresh's user avatar
  • 1
0 votes
1 answer
652 views

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 ...
Mohammad Wahaj Tariq's user avatar
1 vote
1 answer
273 views

I'm curently trying to apply some data augmentation using imgaug to my existing trainDataset. The dataset is created using dataset_from_directory as shown below. trainDataset = tf.keras.utils....
prmrab146's user avatar
0 votes
0 answers
82 views

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 ...
Pranab's user avatar
  • 469
1 vote
1 answer
418 views

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 ...
alrightapril's user avatar
0 votes
1 answer
121 views

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 ...
S.M's user avatar
  • 131
2 votes
1 answer
657 views

In tensorflow 2.10.0 I am trying some data augmentation layers, for example: data_augmentation = keras.Sequential( [ layers.RandomFlip('horizontal'), layers.RandomRotation(0.1),#...
roschach's user avatar
  • 9,656
0 votes
1 answer
848 views

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 ...
YonHar's user avatar
  • 11
0 votes
1 answer
906 views

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 = ...
tikendraw's user avatar
  • 574
1 vote
0 answers
123 views

Using ImageDataGenerator of Keras. suppose my folder structure is like a - 1.jpg 2.jpg 3.jpg b - 5.jpg 6.jpg 7.jpg I am doing the augmentation like below : for i in range (20): for ...
siam's user avatar
  • 97
0 votes
0 answers
162 views

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 ...
Codexsys-7 's user avatar
0 votes
1 answer
804 views

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....
Pythonnorra's user avatar
0 votes
1 answer
2k views

If i enlarge my dataset using augmentations, I get a better result? For example, I have 1 class, it is a dog class and 4 images for it. I applied augmentations to 4 images. Now some of these images ...
Vadim's user avatar
  • 49
0 votes
0 answers
52 views

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: ...
Lookdatway's user avatar
-1 votes
2 answers
1k views

I would like to know how to read (if it is possible) an image after augmentation by Albumentations. I tried: my_img = 'xyz.jpg' image = cv2.imread(my_img) image = cv2.cvtColor(image, cv2....
Simone's user avatar
  • 4,980
0 votes
1 answer
776 views

I'm trying to come up with a new image augmentation that changes colors like above automatically, but to everything not just the flower. The above is a photoshop example but I'd like to automatically ...
Gooby's user avatar
  • 743
0 votes
1 answer
505 views

I am using Keras and ImageDataGenerator to augment the images in a directory and save it in another folder. After Augmentation the colour of the images turn bluish negativish and i dont want the ...
warlock's user avatar
0 votes
0 answers
348 views

I am currently writing a script to augment a dataset for me using tf.keras (code given below). I'm pretty new to tf and data augmentation so I've been following a tutorial (https://blog.devgenius.io/...
Marie's user avatar
  • 1
0 votes
0 answers
535 views

I would like to perform data augmentation on an image, changing its perspective. I have tried using albumentations.augmentations.geometric.transforms.Perspective but it is really very limited. In fact ...
Userulli's user avatar
  • 242
0 votes
0 answers
318 views

I want to apply augmentation methods to my image. For this, I chose codes from this website https://pytorch.org/vision/stable/transforms.html image = cv2.imread('image.png') augmentation = torch.nn....
Interpreter67's user avatar
0 votes
2 answers
3k views

I was training a custom model in pytorch and the dataset was very uneven. As in there are 10 classes for which some class have only 800 images while some have 4000 images. I found that image ...
Manjunath D's user avatar
0 votes
1 answer
231 views

I'm performing multiclass image classification using "xception" model and fine-tuning it. I don't have a large quantity of data so I am doing data augmentation thanks to ...
LaurianeHt's user avatar
0 votes
1 answer
78 views

I want to do basic augmentation on my train datasets. I'll write the code but I need to help. How can I make blackout like this, can you send an example code (just for blackout) or anything? As you ...
Canputer's user avatar
  • 101
0 votes
1 answer
389 views

I want to do augmentation on a dataset containing images as an np-array stored in X_train and its label stored in y_train. Shapes are as follows: print(X_train.shape) print(y_train.shape) Output: (...
Ritesh Prasad Singh's user avatar
0 votes
1 answer
34 views

I'm new to machine learning and I'm working on a dataset with 14k pictures of sea, forest, glaciers, streets, buildings and mountains (6 classes). I have been training my model with it and achieved a ...
Belat's user avatar
  • 1
1 vote
1 answer
233 views

I have a code to augment images like the following, # Augmentation train_datagen = ImageDataGenerator(rotation_range=5, # rotation width_shift_range=0.2, # ...
Neg's user avatar
  • 41
2 votes
1 answer
3k views

Im pretty new at deep learning and tensorflow, then when i try to use albumentations on tensorflow data pipeline, this error occurs (i use google colabs): error: OpenCV(4.1.2) /io/opencv/modules/core/...
Yusuf Syam's user avatar
1 vote
1 answer
611 views

i am trying to transform image, that is rotated and a little skewed with Skimage. image = io.imread("id_1.jpg") afine_tf = tf.AffineTransform(shear=0.3, rotation=-0.5) modified = tf.warp(...
pl7771's user avatar
  • 49
0 votes
1 answer
349 views

I have been trying to augment my around 360 images while training a model. This is how the code looks like img_data_gen_args = dict(rotation_range=90, width_shift_range=0.3, ...
Dan Py's user avatar
  • 27
2 votes
1 answer
482 views

I have a question about mean and standard deviation in image augmentation. Are the two parameters recommended to be filled in? If so, how could I know the number? Do I have to iterate through the data,...
Amnesie's user avatar
  • 31
1 vote
1 answer
142 views

I have a dataset of 279 images and i wish to perform augmentations with batch size of 4. Following is the code sample that i have written import numpy as np from skimage import io import os from PIL ...
DevanDev's user avatar
  • 351
1 vote
1 answer
578 views

I am trying to implement Aleju's Imgaug to TFOD API. Noticed that you can not iterate through Tensors in the graph mode . I looked up for the solution and tried many suggestions but neither of them ...
Ahmet Mert Saygu's user avatar
2 votes
1 answer
770 views

I am running the following code: [https://pastebin.com/LK8tKZtN] The error obtained is following: File "C:\Users\Admin\PycharmProjects\BugsClassfications\main2.py", line 45, in set_shapes *...
Ion Caciula's user avatar