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

Steering not turning for the Autopilotv2 and i am using the same run video and same code #3

Open
vineethamurali opened this issue Apr 28, 2019 · 17 comments

Comments

@vineethamurali
Copy link

No description provided.

@vineethamurali vineethamurali changed the title steering not turning Steering not turning for the Autopilotv2 and i am using the same run video and same code Apr 28, 2019
@maxmstrmn
Copy link

Same here. Have you solved your problem?

@maxmstrmn
Copy link

Did you succeed in the meantime?

@Sriram97
Copy link

Sriram97 commented Nov 5, 2019 via email

@maxmstrmn
Copy link

What did you do? Could you share the source code?

@Sriram97
Copy link

Sriram97 commented Nov 8, 2019 via email

@maxmstrmn
Copy link

Hi, thank you for this hint. But it doesn't work. I only use the v2 files from this repo (which don't include labels), train and test. The final file size of the h5 file is around 8mb, which is wrong as the file shipped in this repo ist 28mb large.
Also if I print the network summary of both files it seems that some layers are missing in my file...
Which environment do you use?

@Sriram97
Copy link

Sriram97 commented Nov 21, 2019 via email

@maxmstrmn
Copy link

Hi,
I ran Load_DataV2.py on the dataset with 45000 images. This creates the labels and features files (~2GB size). Then I run the training script which creates the .h5 file, but this file is not as large as the file in this repo.
I keep trying using the larger dataset, but there must be something wrong.
I use Windows 10, Python 3.6, Keras 3.2.1 Tf 2.0.0 GPU.

@maxmstrmn
Copy link

No success, even with the larger dataset the final .h5 file is around 8mb large.

@maxmstrmn
Copy link

maxmstrmn commented Nov 22, 2019

It seems the training is crazy. I printed both model summaries using the print_summary method from the keras utils. As you can see, in my trained model, a lot of layers are missing!

Here ist the output:

summary .h5 from this repo
Model: "sequential_1"


Layer (type) Output Shape Param #

lambda_1 (Lambda) (None, 100, 100, 1) 0


conv2d_1 (Conv2D) (None, 100, 100, 32) 320


activation_1 (Activation) (None, 100, 100, 32) 0


max_pooling2d_1 (MaxPooling2 (None, 50, 50, 32) 0


conv2d_2 (Conv2D) (None, 50, 50, 64) 18496


activation_2 (Activation) (None, 50, 50, 64) 0


max_pooling2d_2 (MaxPooling2 (None, 25, 25, 64) 0


conv2d_3 (Conv2D) (None, 25, 25, 128) 73856


activation_3 (Activation) (None, 25, 25, 128) 0


max_pooling2d_3 (MaxPooling2 (None, 12, 12, 128) 0


flatten_1 (Flatten) (None, 18432) 0


dropout_1 (Dropout) (None, 18432) 0


dense_1 (Dense) (None, 128) 2359424


dense_2 (Dense) (None, 64) 8256


dense_3 (Dense) (None, 1) 65

Total params: 2,460,417
Trainable params: 2,460,417
Non-trainable params: 0


summary .h5 from my training output

Model: "sequential_1"


Layer (type) Output Shape Param #

lambda_1 (Lambda) (None, 100, 100, 1) 0


conv2d_1 (Conv2D) (None, 100, 100, 32) 320


activation_1 (Activation) (None, 100, 100, 32) 0


max_pooling2d_1 (MaxPooling2 (None, 50, 50, 32) 0


conv2d_2 (Conv2D) (None, 50, 50, 32) 9248


activation_2 (Activation) (None, 50, 50, 32) 0


max_pooling2d_2 (MaxPooling2 (None, 25, 25, 32) 0


conv2d_3 (Conv2D) (None, 25, 25, 64) 18496


activation_3 (Activation) (None, 25, 25, 64) 0


max_pooling2d_3 (MaxPooling2 (None, 12, 12, 64) 0


conv2d_4 (Conv2D) (None, 12, 12, 64) 36928


activation_4 (Activation) (None, 12, 12, 64) 0


max_pooling2d_4 (MaxPooling2 (None, 6, 6, 64) 0


conv2d_5 (Conv2D) (None, 6, 6, 128) 73856


activation_5 (Activation) (None, 6, 6, 128) 0


max_pooling2d_5 (MaxPooling2 (None, 3, 3, 128) 0


conv2d_6 (Conv2D) (None, 3, 3, 128) 147584


activation_6 (Activation) (None, 3, 3, 128) 0


max_pooling2d_6 (MaxPooling2 (None, 1, 1, 128) 0


flatten_1 (Flatten) (None, 128) 0


dropout_1 (Dropout) (None, 128) 0


dense_1 (Dense) (None, 1024) 132096


dense_2 (Dense) (None, 256) 262400


dense_3 (Dense) (None, 64) 16448


dense_4 (Dense) (None, 1) 65

Total params: 697,441
Trainable params: 697,441
Non-trainable params: 0


@Sriram97
Copy link

Sriram97 commented Nov 22, 2019 via email

@maxmstrmn
Copy link

maxmstrmn commented Nov 22, 2019

Everything is tested with the v2 files. The angle is still static. Please note the remarkable difference between these two models I posted above.

If I use the model .h5 shipped in this repo everything works fine. But my own trained fails.

@Sriram97
Copy link

Sriram97 commented Nov 22, 2019 via email

@Sriram97
Copy link

Sriram97 commented Nov 22, 2019 via email

@Shagun23
Copy link

Shagun23 commented Jan 4, 2020

hello i am getting an error while running code

@hasithram
Copy link

could you please share the whole code for AutopilotV2.py.
Because when i went through the whole code there was no difference between V1 and V2 code(the Autopilot V1.py and Autopilot V1.py)
And even there is no "run.mp4" video for V2
Could you share these stuff...would be really helpful

@akshaybahadur21
Copy link
Owner

The run.mp4 for v2 is not uploaded due to copyright issues.
Use video from youtube

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

6 participants