naokishibuya / car-behavioral-cloning

Built and trained a convolutional network for end-to-end driving in a simulator using Tensorflow and Keras
MIT License
229 stars 136 forks source link

Hi there is no return in the utils.py file ? #6

Closed jhasuman closed 7 years ago

jhasuman commented 7 years ago

While I was trying to understand the utils.py file but there is no return for the last function, Am I missing something ? Thank You!!

naokishibuya commented 7 years ago

Hi @jhasuman That function is a generator. The 'yield' returns values but the function itself does not return/exit. If you search for 'Python generator' or 'Keras fit_generator', you should be able to find related articles. For example,

naokishibuya commented 7 years ago

@jhasuman - I'm closing this for now. Let me know if you need any further clarification.