-
Notifications
You must be signed in to change notification settings - Fork 569
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
Error in train.ipynb #89
Comments
Hello, I have encountered the same problem. Have you solved this problem?Thanks a lot! |
I think there is a problem of keras version
…On Sat, Feb 16, 2019, 3:59 AM Misslindalian ***@***.*** wrote:
Hello, I have encountered the same problem. Have you solved this
problem?Thanks a lot!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgaGbzU4uscWuuh-vlnRZ4qXMTZxZjIKks5vN8hggaJpZM4a35pq>
.
|
So how to solve it? Just upgrade keras version?Thanks a lot! |
Ya. That should work. Haven't tried it. But one of my colleague have done
it. Jist check the issue section of airsim
…On Sat, Feb 16, 2019, 4:11 AM Misslindalian ***@***.*** wrote:
So how to solve it? Just upgrade keras version?Thanks a lot!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgaGb-evcRddV0JQjAMMOmxwCC6ajeufks5vN8skgaJpZM4a35pq>
.
|
Airsim?Can you tell me in detail? |
Haven't tried it though. I have directly used the trained models. But take
a look at all issues. The solution is in one of them
…On Sat, Feb 16, 2019, 4:20 AM Misslindalian ***@***.*** wrote:
Airsim?Can you tell me in detail?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgaGb9w7POHNDeoKsne9g_IQi6Oj-9Gsks5vN817gaJpZM4a35pq>
.
|
Hello! How about your trained models? My tested result is not good. When I trained the models, it stopped when the iterator = 45. But in fact, it needs to run 500 iterators. What I mean is that it "stopped early". Thank you for your patience! |
What error did it show when it stopped at 45? |
For the initial keras error, make sure you are using version 2.1.2. See this issue as to why. It probably stopped early because of the EarlyStopping Callback. Here is why you want to use that callback. If it actually showed an error, open a new issue. Please use the issue template and fill out all relevant forms. |
Thank you for your answer! However, the model does not perform well. It can only run normally in the first few seconds. When it turns, it will collide and rush into the grass. |
Try retraining with a different RNG seed. There isn't enough data to guarantee that the network fully converges every time. But after a few attempts, you should get one that works. |
Can we go back please to the original post about Keras brightness_range ? C:\AirSim_RL>python TrainModel.py Any help will be appreciated... |
@OrSh1234 just change the keras version to 2.1.2 using the command conda install keras==2.1.2 and it solves the problem |
hrishikeshtawade04 - thanks. It solves the problem. |
On running the Train model code in Autonomous Driving cookbook I am getting following error in the third code cell. It seems there is an error in the Generators.py code. Kindly help.
ValueError Traceback (most recent call last)
in ()
----> 1 data_generator = DriveDataGenerator(rescale=1./255., horizontal_flip=True, brighten_range = (0.4,0.0))
2 train_generator = data_generator.flow (train_dataset['image'], train_dataset['previous_state'], train_dataset['label'], batch_size=batch_size, zero_drop_percentage=0.95, roi=[76,135,0,255])
3 eval_generator = data_generator.flow (eval_dataset['image'], eval_dataset['previous_state'], eval_dataset['label'], batch_size=batch_size, zero_drop_percentage=0.95, roi=[76,135,0,255])
~/enpm-809k/AutonomousDrivingCookbook/AirSimE2EDeepLearning/Generator.py in init(self, featurewise_center, samplewise_center, featurewise_std_normalization, samplewise_std_normalization, zca_whitening, zca_epsilon, rotation_range, width_shift_range, height_shift_range, shear_range, zoom_range, channel_shift_range, fill_mode, cval, horizontal_flip, vertical_flip, rescale, preprocessing_function, data_format, brighten_range)
45 rescale,
46 preprocessing_function,
---> 47 data_format)
48 self.brighten_range = brighten_range
49
~/anaconda3/envs/airsim/lib/python3.5/site-packages/keras/preprocessing/image.py in init(self, featurewise_center, samplewise_center, featurewise_std_normalization, samplewise_std_normalization, zca_whitening, zca_epsilon, rotation_range, width_shift_range, height_shift_range, brightness_range, shear_range, zoom_range, channel_shift_range, fill_mode, cval, horizontal_flip, vertical_flip, rescale, preprocessing_function, data_format, validation_split, dtype)
464 data_format=data_format,
465 validation_split=validation_split,
--> 466 **kwargs)
467
468
~/anaconda3/envs/airsim/lib/python3.5/site-packages/keras_preprocessing/image/image_data_generator.py in init(self, featurewise_center, samplewise_center, featurewise_std_normalization, samplewise_std_normalization, zca_whitening, zca_epsilon, rotation_range, width_shift_range, height_shift_range, brightness_range, shear_range, zoom_range, channel_shift_range, fill_mode, cval, horizontal_flip, vertical_flip, rescale, preprocessing_function, data_format, validation_split, interpolation_order, dtype)
360 raise ValueError(
361 '`brightness_range should be tuple or list of two floats. '
--> 362 'Received: %s' % (brightness_range,))
363 self.brightness_range = brightness_range
364
ValueError: `brightness_range should be tuple or list of two floats. Received: 0.0
The text was updated successfully, but these errors were encountered: