mitroadmaps / roadtracer

MIT License
235 stars 76 forks source link

Significance of arguments follow_targets and compute_targets in call to eval function in infer.py #20

Closed ahanagemini closed 5 years ago

ahanagemini commented 5 years ago

What is the significance of the arguments follow_targets and compute_targets in call to eval function in infer.py?

uakfdotb commented 5 years ago

This is for evaluating loss and accuracy. By default follow_targets=False so that we use the machine learning model to determine the angles to follow.

compute_targets can be True even if follow_targets=False, in which case some additional features can be added to the output visualizations (if SAVE_EXAMPLES=True). But if compute_targets=True, then ground truth data must be supplied.

If follow_targets=True, then the angles will be determined based on the ground truth data. This option is used during training to evaluate the loss/accuracy over validation set. Otherwise comparing the loss/accuracy doesn't make sense because the inputs will be different as the model learns, since follow_targets=False means that the input on one iteration is determined based on the angles chosen in previous iterations.

ahanagemini commented 5 years ago

Thank you. That clears things up.