Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Sequential' object has no attribute 'augment_images' #2

Closed
jolly12138 opened this issue Mar 28, 2019 · 3 comments
Closed

'Sequential' object has no attribute 'augment_images' #2

jolly12138 opened this issue Mar 28, 2019 · 3 comments

Comments

@jolly12138
Copy link

jolly12138 commented Mar 28, 2019

hi,thank you for your code. When I use your example an error occurred ‘Sequential' object has no attribute 'augment_images’. Can you tell me how to slove it?

from vidaug import augmentors as va

sometimes = lambda aug: va.Sometimes(0.5, aug) # Used to apply augmentor with 50% probability
seq = va.Sequential([
va.RandomCrop(size=(240, 180)), # randomly crop video with a size of (240 x 180)
va.RandomRotate(degrees=10), # randomly rotates the video with a degree randomly choosen from [-10, 10]
sometimes(va.HorizontalFlip()) # horizontally flip the video with 50% probability
])

for batch_idx in range(1000):
# 'video' should be either a list of images from type of numpy array or PIL images
video = load_batch(batch_idx)
video_aug = seq.augment_images(video)
train_on_video(video)

Thank you!

@Hiteshi16
Copy link

Same doubt .. Could you solve it?

@MounirB
Copy link

MounirB commented Apr 17, 2019

seq(video) will apply data augmentation on the video clip sent as a parameter. No need to use the non-existing function augment_images

@ahmetgunduz
Copy link
Collaborator

it is fixed now. No need for augment_images()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants