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

How to tackle this issue please . Error while running model.py AttributeError: 'numpy.ndarray' object has no attribute 'strip' #46

Open
nahliabdelwahed opened this issue Sep 26, 2019 · 0 comments

Comments

@nahliabdelwahed
Copy link

Epoch 1/10
Traceback (most recent call last):
File "model.py", line 164, in
main()
File "model.py", line 160, in main
train_model(model, args, *data)
File "model.py", line 121, in train_model
verbose=1)
File "/home/dell/anaconda3/envs/Automata-nali/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "/home/dell/anaconda3/envs/Automata-nali/lib/python3.6/site-packages/keras/engine/training.py", line 1732, in fit_generator
initial_epoch=initial_epoch)
File "/home/dell/anaconda3/envs/Automata-nali/lib/python3.6/site-packages/keras/engine/training_generator.py", line 185, in fit_generator
generator_output = next(output_generator)
File "/home/dell/anaconda3/envs/Automata-nali/lib/python3.6/site-packages/keras/utils/data_utils.py", line 742, in get
six.reraise(*sys.exc_info())
File "/home/dell/anaconda3/envs/Automata-nali/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/home/dell/anaconda3/envs/Automata-nali/lib/python3.6/site-packages/keras/utils/data_utils.py", line 711, in get
inputs = future.get(timeout=30)
File "/home/dell/anaconda3/envs/Automata-nali/lib/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
File "/home/dell/anaconda3/envs/Automata-nali/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/dell/anaconda3/envs/Automata-nali/lib/python3.6/site-packages/keras/utils/data_utils.py", line 650, in next_sample
return six.next(_SHARED_SEQUENCES[uid])
File "/Lun3/nali/How_to_simulate_a_self_driving_car-master/utils.py", line 51, in batch_generator
image = load_image(data_dir, center)
File "/Lun3/nali/How_to_simulate_a_self_driving_car-master/utils.py", line 10, in load_image
return mpimg.imread(os.path.join(data_dir, image_file.strip()))
AttributeError: 'numpy.ndarray' object has no attribute 'strip'

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