hmorimitsu/ptlflow

The loss function of LiteFlowNet*

ChenYizhenCN opened this issue · 2 comments

Hi Henrique, thanks for this great repo!

I tried to train the model by running "!python train.py liteflownet3", as indicated in liteflownet3.py (with loss_fn=None), it will be reported that

" assert self.loss_fn is not None, f'Model {self.__class__. __name__} cannot be trained.
It does not have loss function.' AssertionError: Model LiteFlowNet3 cannot be trained. it does not have loss function. "

However, L2 loss is used in training as mentioned in the liteflownet3 paper.

This means that liteflownet3 does not support training in ptlflow for now? And

would you have plans to add support for liteflownet3?

Thanks again for your great work.

Thank you for responding!

Many thanks for your generous contribution.

I gladly try to implement the loss and it will be first shared once progress has been made.

Best regards.