felipecode / coiltraine

Training framework for conditional imitation learning
MIT License
230 stars 68 forks source link

strange results when run driving #38

Open Kailiangdong opened 3 years ago

Kailiangdong commented 3 years ago

Hello, I run python3 coiltraine.py --folder sample --gpus 0 -de TestT1_Town01 -vd CoILVal1 --docker carlasim/carla:0.8.4 on master branch to see original performance. The training and validation works well. But when drive in the simulator Carla, the output log is:

Going to communicate Checkpoint 10000 0 0 0 <carla08.driving_benchmark.experiment.Experiment object at 0x7fd461f3e518> start index 36 end index 40 start index 39 end index 35

----- Printing results for training weathers (Seen in Training) -----

Percentage of Successful Episodes

VALUES Weather: Clear Noon Task: 0 -> 0.0 Average Between Weathers Task 0 -> 0.0

Average Percentage of Distance to Goal Travelled

VALUES Weather: Clear Noon Task: 0 -> -6.953387923663017e-07 Average Between Weathers Task 0 -> -6.953387923663017e-07

Average Percentage of Distance to Percentage OffRoad

VALUES Weather: Clear Noon Task: 0 -> 0.0 Average Between Weathers Task 0 -> 0.0

All the data is zero. Do anyone meet similar situation? thank you

Kailiangdong commented 3 years ago

In addition, another output log for driving is:

/home/Documents/code/coiltraine/logger/monitorer.py:120: UserWarning: loadtxt: Empty input file: "<_io.BufferedReader name='_logs/sample/coil_icra/drive_TestT1_Town01_csv/control_output_.csv'>" delimiter=",", skiprows=1) ERROR:root:(127.0.0.1:35865) connection closed ERROR:root:(127.0.0.1:35865) connection closed ERROR:root:(127.0.0.1:35865) connection closed ERROR:root:(127.0.0.1:35865) connection closed ERROR:root:(127.0.0.1:35865) connection closed ERROR:root:(127.0.0.1:35865) connection closed INFO:coil_icra_drive_TestT1_Town01:{'Iterating': {'Checkpoint': 2000, 'Agent': "tensor(-0.0132, device='cuda:0', grad_fn=)"}} /home/Documents/code/coiltraine/carla08/driving_benchmark/metrics.py:340: RuntimeWarning: invalid value encountered in true_divide experiment_results_matrix[:, header.index('number_red_lights')]))).tolist() /home/destiny6303/anaconda3/envs/coiltraine/lib/python3.5/site-packages/skimage/transform/_warps.py:84: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15. warn("The default mode, 'constant', will be changed to 'reflect' in " INFO:coil_icra_drive_TestT1_Town01:{'Loading': {'CARLA': '/CarlaUE4/Binaries/Linux/CarlaUE4-windowed-benchmark-fps=10-world-port=39713'}} INFO:coil_icra_drive_TestT1_Town01:{'Iterating': {'Checkpoint': 4000}} ERROR:root:(127.0.0.1:39713) connection closed ERROR:root:(127.0.0.1:39713) connection closed ERROR:root:(127.0.0.1:39713) connection closed ERROR:root:(127.0.0.1:39713) connection closed ERROR:root:(127.0.0.1:39713) connection closed ERROR:root:(127.0.0.1:39713) connection closed ERROR:root:(127.0.0.1:39713) connection closed ERROR:root:(127.0.0.1:39713) connection closed ERROR:root:(127.0.0.1:39713) connection closed ERROR:root:(127.0.0.1:39713) connection closed ERROR:root:(127.0.0.1:39713) connection closed ERROR:root:(127.0.0.1:39713) connection closed

newday233 commented 3 years ago

-de TestT1_Town01 what is TestT1_Town01 ?