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

a question regarding customdatagenerator #4

Open
wenouyang opened this issue Jan 23, 2017 · 0 comments
Open

a question regarding customdatagenerator #4

wenouyang opened this issue Jan 23, 2017 · 0 comments

Comments

@wenouyang
Copy link

wenouyang commented Jan 23, 2017

Hi Raghavendra,

Thanks for sharing the code. I have a question regarding generator.py. Looks like CustomDataGenerator(Iterator): only contains two methods: init and next. You mentioned that this is modified Modified keras ImageDataGenerator, which seems to me includes a lot of other methods.

Or in specific, I am just trying to understand how does your CustomDataGenerator(Iterator) work?. Thanks.

Besides, in train.py, the train_generator and val_generator are setup in different manner, may I know the difference?

train_generator = CustomDataGenerator(X_train, y_train, transform, batch_size)

val_generator = CustomDataGenerator(X_val, y_val, lambda x, y: transform(x, y, augment=False), batch_size)

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

1 participant