enter image description hereI'm trying to write the custom loss function called ( Auxiliary loss function) which are two softmax loss functions put together that controls both the Context path and Spatial path of the network.

The loss function is for both paths . I don't know if I include two softmax layers at the end of both paths or not. enter image description here

Or I create a custom loss function that takes the output of the last layers of both paths before mergeing the features.

One other thing is that created the network with keras with two inputs(for both separate paths) and one output.

Here is a link to my jupyter notebook.


migrated from stackoverflow.com Nov 27 '18 at 8:47

This question came from our site for professional and enthusiast programmers.

  • $\begingroup$ What exactly is the problem you're having? Please give us more details. $\endgroup$ – Tim Nov 29 '18 at 8:23
  • $\begingroup$ Please register &/or merge your accounts (you can find information on how to do this in the My Account section of our help center), then you will be able to edit & comment on your own question. $\endgroup$ – gung Nov 30 '18 at 14:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.