Training the TID network
Opened this issue · 1 comments
Hi guys, I was trying to train the TID network using the train.py
script with the tid_train.yaml
config. I downloaded the dsec dataset and placed it in the correct folders as per the readme. While training I noticed that the training crashes after some iterations with an error in the retrieval_fn.py
:
idnet/idn/utils/retrieval_fn.py
Lines 45 to 48 in 6e9ade0
It seems that the retrieval function is expecting there to be a gt_flow_next
for all elements of the batch but when I check the dataloader here:
idnet/idn/loader/loader_dsec.py
Lines 396 to 404 in 6e9ade0
it will occasionally load a sample at the end of the recording for which there is no
gt_flow_next
.
By changing the +1
to a -1
in line 524 here the training runs without errors:
idnet/idn/loader/loader_dsec.py
Lines 520 to 534 in 6e9ade0
Could it be that this was a typo in the code or am I missing something?
Hi,
You are probably right! Apologies this error has made into the release. I will take a look at it towards the end of this week.
Thanks for your understanding!