neuralnet-pytorch icon indicating copy to clipboard operation
neuralnet-pytorch copied to clipboard

AttributeError: module 'neuralnet_pytorch.metrics' has no attribute 'emd_loss'

Open Wonder1905 opened this issue 5 years ago • 2 comments
trafficstars

Hi I'm trying to use emd loss and I'm getting: AttributeError: module 'neuralnet_pytorch.metrics' has no attribute 'emd_loss' My integration is simple: import neuralnet_pytorch as nnt cost = nnt.metrics.emd_loss(x,y) I'll be happy for your help Thanks.

Wonder1905 avatar Mar 25 '20 13:03 Wonder1905

Hi. Which branch did you install from?

justanhduc avatar Mar 26 '20 10:03 justanhduc

The extensions module, containing the EMD loss implementation is only available in the branch named fancy . Hope changing the branch will solve your problem.

robertmoga avatar Jun 09 '20 16:06 robertmoga