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

KeyError: 'user/angle' #1103

Closed
Ahrovan opened this issue Feb 26, 2023 · 4 comments
Closed

KeyError: 'user/angle' #1103

Ahrovan opened this issue Feb 26, 2023 · 4 comments

Comments

@Ahrovan
Copy link

Ahrovan commented Feb 26, 2023

Command : donkey train --tub ./data --model ./models/mypilot.h5

ERROR : 2023-02-26 22:35:30.444913: W tensorflow/core/framework/op_kernel.cc:1755] Unknown: KeyError: 'user/angle'

How to solve:

  • change manifest.json and catalog_x.catalog
    all "user/steering" >> "user/angle"

Why occurred ? donkey car web controller saved all steering values as "user/angle" not "user/steering"
image

@Ezward
Copy link
Contributor

Ezward commented Feb 26, 2023

This is my error. I just merged a change that renamed 'user/angle' to 'user/steering' as part of a larger change, forgetting that this would obsolete old data. I will work on a fix immediately.

@Ezward
Copy link
Contributor

Ezward commented Feb 26, 2023

@Ahrovan I've made a change in this branch; https://github.com/autorope/donkeycar/tree/1104-fix-user-angle-in-deep-learning It will now again save steering data with the 'user/angle' label ratehr than 'user/steering' However this does not fix data that was saved with 'user/steering',but you say you have a work-around for data that was erroneously saved using 'user/steering':

  • To fix data saved with 'user/steering', change manifest.json and catalog_x.catalog all "user/steering" >> "user/angle"

Please give the branch a test and let me know here is this fixes the data recording issue. Thanks and sorry for the trouble.

You will need to

  1. from the root folder of your donkeycar repo: checkout the branch
git checkout 1104-fix-user-angle-in-deep-learning
  1. make sure the donkeycar python environment is active, then from your mycar folder (the folder where you are running the car from), recreate the manage.py file by overwriting it;
donkey createcar --overwrite --path=.

we can use --path=. because we are already in the mycar folder.

  1. Now you can run the car and save data and verify that it is saving steering as 'user/angle'

@Ezward
Copy link
Contributor

Ezward commented Feb 26, 2023

See PR #1105 for a fix

@Ezward
Copy link
Contributor

Ezward commented Feb 27, 2023

That PR merged. I've tested in by collecting data, training and driving on autopilot.

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

2 participants