Hey Roger
the Focus_loss is in the trainer_council.py search for "focus_loss" and you will find all of its parts.
you can also look in networks.py at Decoder_V2_atten to see how the masks is being used.
here is an illustration of how the 4th channel is used.