imitation-learning icon indicating copy to clipboard operation
imitation-learning copied to clipboard

How to do inference once we got tensorflow models?

Open Deepak3994 opened this issue 6 years ago • 3 comments

KIndly help

Deepak3994 avatar Dec 14 '18 11:12 Deepak3994

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.

markus-hinsche avatar Dec 14 '18 12:12 markus-hinsche

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.

Deepak3994 avatar Dec 18 '18 08:12 Deepak3994

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

markus-hinsche avatar Dec 18 '18 08:12 markus-hinsche