Closed tracer9 closed 5 years ago
Hi @tracer9,
Thank you very much for pointing out that.
Yes, some code is not used in the final version. It is used to do some additional ablation experiments in order to clarify my idea at the beginning of this project.
Cheers
Hi Wei! Thanks for your kindly sharing your code. When reading, I found a redundant line, though unharmful, should be corrected in my opinion.
https://github.com/wei-mao-2019/LearnTrajDep/blob/master/utils/data_utils.py#L668
In this
if
line, when usingand
, the condition is alwaysTrue
regardless oftrain
,val
, ortest
. Specifically,and
should beor
, if you want to achieve what the comment implies.However, when you change to
or
, which means intest
andval
you gonna use the statistics you passed, it would leads to error. Because you have setdata_std = 1.0
for thosedim_to_ignore
dimensions when you call train_loader.A very, very small typo you may not notice. Thanks for your code again.