BloodAxe / pytorch-toolbelt

PyTorch extensions for fast R&D prototyping and Kaggle farming
MIT License
1.52k stars 122 forks source link

AttributeError: module 'pytorch_toolbelt.losses' has no attribute 'JointLoss' #93

Open likepd opened 1 year ago

likepd commented 1 year ago

AttributeError: module 'pytorch_toolbelt.losses' has no attribute 'JointLoss'

BloodAxe commented 1 year ago

Check this https://github.com/BloodAxe/pytorch-toolbelt/issues/91 answer. Do you mind sharing the use case for this loss? I'm curious whether the decision to remove this class was too fast or not.

likepd commented 1 year ago

Thank you !!!

likepd commented 1 year ago

I use a cascaded decoder structure based on BBSNet,which needs two loss fuction.

wanyuan123456 commented 1 year ago

how to deal with this problem?

da2r-20 commented 1 year ago

We should at least remove it from the docs and readme

fxiaho commented 5 months ago

When i run the demo_losses.py. I encountered the same problem, is there any solution?

Supzekun commented 5 months ago

When i run the demo_losses.py. I encountered the same problem, is there any solution? Did you solve this problem?