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

about the yield in data_loader.py #5

Open
zyfsa opened this issue Jan 20, 2018 · 2 comments
Open

about the yield in data_loader.py #5

zyfsa opened this issue Jan 20, 2018 · 2 comments

Comments

@zyfsa
Copy link

zyfsa commented Jan 20, 2018

hi, I want to know why when the get the train data, their are two generator.

def train_generator_func():
while True:
X = train_generator1.next()
print X.shape
Y1 = train_generator2.next()
yield X, [Y1, np.zeros(shape=(Y1.shape[0], img_rows - 4, img_cols - 4)),
np.zeros(shape=(Y1.shape[0], img_rows - 4, img_cols - 4))]

please, can I discard the Y1 ?
and just use the X? thank you very much.

@Asherkab
Copy link

I have a related issue.
On the very last walkthrough section, I get:

generator' object has no attribute 'next'.

@tv12345
Copy link

tv12345 commented Nov 2, 2018

using -- dat = next(data_generator)
instead of -- dat = data_generator.next()

works !! Python3 issue

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

3 participants