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 while using show_plots.py script #366

Open
nik1806 opened this issue Jun 5, 2022 · 1 comment
Open

KeyError while using show_plots.py script #366

nik1806 opened this issue Jun 5, 2022 · 1 comment

Comments

@nik1806
Copy link
Contributor

nik1806 commented Jun 5, 2022

I received the following error message:

Traceback (most recent call last):
  File "show_plots.py", line 275, in <module>
    main()
  File "show_plots.py", line 269, in main
    show_metrics(config_data['bags'], bags_checkpoints, bags_metadata, bags_lapdata, first_images)
  File "show_plots.py", line 247, in show_metrics
    circuit_diameter)
  File "show_plots.py", line 38, in __init__
    self.add_labels()
  File "show_plots.py", line 122, in add_labels
    self.experiment_metrics['experiment_total_real_time']) + 's')
KeyError: 'experiment_total_real_time'

I use the following command:

python3 show_plots.py -b 20220605-082510.bag
@nik1806
Copy link
Contributor Author

nik1806 commented Jun 5, 2022

In the corresponding .json file I could see experiment_total_real_time parameter.

Successfully created the data folder ./perfect_bags/lap-montmelo.
[INFO]  Successfully created the data folder 20220605-082510.
20: * Completed distance ---> 176.46626058535983
20: * Average speed ---> 6.535787429087401
20: * Position deviation MAE ---> 2.5139372691337485
20: * Position deviation total error ---> 3295.7717598343443
20: Lap not completed
20: * Experiment total simulated time ---> 27.0
20: * Mean network inference time ---> 0.02662182177527476s
20: * Frame rate ---> 31.25925925925926fps
20: * Brain iterations frequency simulated time ---> 37.13086456548195it/s
20: * Target brain iterations simulated time -> 45.45454545454545it/s
20: * Mean brain iterations real time ---> 0.028056164548494977s
20: * Brain iterations frequency real time ---> 35.64279066981888it/s
20: * Target brain iterations real time -> 20.0it/s
20: * Mean brain iterations simulated time ---> 0.02693177257525084s
20: * Mean brain iterations simulated time ---> 0.44349832775920006
20: * Real time update rate ---> 1000
20: * GPU inference ---> False
20: * Saving experiment ---> True
20: Saving metrics to ROS bag
[INFO] [1654417595.278474, 44.008000]: Image received and sent to /first_image
20: * Experiment total real time -> 73.55877709388733

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