merantix / imitation-learning

Autonomous driving: Tensorflow implementation of the paper "End-to-end Driving via Conditional Imitation Learning"
https://medium.com/merantix/journey-from-academic-paper-to-industry-usage-cf57fe598f31
MIT License
89 stars 21 forks source link

How to do inference once we got tensorflow models? #5

Open Deepak3994 opened 5 years ago

Deepak3994 commented 5 years ago

KIndly help

markus-hinsche commented 5 years ago

Please refer to https://github.com/carla-simulator/imitation-learning/blob/master/agents/imitation/imitation_learning.py. This controller has to read the model/checkpoint file. This is how you can run it in the carla environment.

Deepak3994 commented 5 years ago

The above file contains imitation_learning.py consists of set of function calls but there is no main function associated with it, is there is any main function so that all the function can be called in appropriate order to do the inference on carla.

markus-hinsche commented 5 years ago

You have to go to yet another repository (the Carla main repository) https://github.com/carla-simulator/carla/blob/master/Deprecated/PythonClient/driving_benchmark_example.py, and switch out the agent for the one in imitation_learning.py