Questions tagged [image-augmentation]
84 questions
0
votes
1 answer
Monkey patch failing on __init__ statement
I am trying to patch the augmentor function from the clodsa package to read custom named .json files instead of adhering to their format, so instead of /annotations.json make new_name.json:
!pip install clodsa
??augmentor
Type: …

Rivered
- 741
- 7
- 27
0
votes
1 answer
Is there a way to build a keras preprocessing layer that randomly rotates at specified angles?
I'm working on an astronomical images classification project and I'm currently using keras to build CNNs.
I'm trying to build a preprocessing pipeline to augment my dataset with keras/tensorflow layers. To keep things simple I would like to…

eymerich92
- 43
- 6
0
votes
1 answer
How Implement on the fly augmentation in the tensorflow?
I want implement augmentation in a 3D dataset with an tensorflow model.
the augmentation function is like this:
def augmentation(img, label):
p = .5
print('augmentation')
if…

Tavakoli
- 1,303
- 3
- 18
- 36
0
votes
0 answers
Loss Fluctuates with YOLOv4-tiny on a 1,700 big dataset with 16 classes
I am building a logo detection system using YOLOv4-tiny. I've built a custom synthetic dataset where I've drawn transparent logos on top of gameplay screens. The logos, before drawn on the background, were augmented (blurring, perspective…

Onur-Andros Ozbek
- 2,998
- 2
- 29
- 78
0
votes
1 answer
How to have an image go through many functions determined by probability weights?
I have a logo. What I am doing now is I am setting probability weights for all of these functions and the logo goes to only one of them at a time depending on its probability value. This is my code:
augmentation_func = [(random_rotation,…

Onur-Andros Ozbek
- 2,998
- 2
- 29
- 78
-1
votes
1 answer
How to enlarge dataset using augmentations in Pytorch
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 are augmented, some are not. But I still have 4…

Vadim
- 29
- 2
-1
votes
2 answers
Albumentations - Read images after augmentation
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.COLOR_BGR2RGB)
transformed = transform(image=image)
new_img =…

Simone
- 4,800
- 12
- 30
- 46
-1
votes
1 answer
How to solve the "NameError: name 'frame' is not defined" error occured in OpenCV?
import imgaug.augmenters as iaa
import cv2
import glob
from tkinter import Frame
from tkinter import Text
from tkinter import Label
# 1. Load Dataset
images = []
images_path = glob.glob("images/*.jpg")
for img_path in images_path:
img =…

Milon
- 19
- 1
- 5
-2
votes
1 answer
augmentation on images to look like real example python
I have generated many images like number plate as below[![enter image description here]
Now, want to convert all such images like real world vehicle number plate image.
For example-
How to these type of augmentation and save the all the augmented…

k_p
- 283
- 6
- 17