llSourcell / How_to_simulate_a_self_driving_car

This is the code for "How to Simulate a Self-Driving Car" by Siraj Raval on Youtube
431 stars 306 forks source link

run model.py get error when training model #31

Open ybdesire opened 6 years ago

ybdesire commented 6 years ago

Run model.py and get successfully output for parameters and model summary. However, get error below when training the model:

Epoch 1/10
Traceback (most recent call last):
  File "model.py", line 167, in <module>
    main()
  File "model.py", line 163, in main
    train_model(model, args, *data)
  File "model.py", line 124, in train_model
    verbose=1)
  File "xxx\Anaconda3\envs\car-behavioral-cloning\lib\site-packages\keras\models.py", line 924, in fit_generator
    pickle_safe=pickle_safe)
  File "xxx\Anaconda3\envs\car-behavioral-cloning\lib\site-packages\keras\engine\training.py", line 1481, in fit_generator
    str(generator_output))
ValueError: output of generator should be a tuple (x, y, sample_weight) or (x, y). Found: None
fernandostc commented 6 years ago

I'm having the same issue!!

jaskarannagi19 commented 6 years ago

I am also in the league of errors

jaskarannagi19 commented 6 years ago

Solved it please make sure your path to images is correct in driving_log.csv you might have been moved images from one folder to other so it cannot find the image in the original path Thanks Hope helps somebody