I have tried using the functions you suggested and the other loss function. But unfortunately, I can’t solve this problem with these loss functions.
From this point of view, there seems to be a problem with the network structure.
Therefore, I will check the network structure once more.
Thank you for your suggestion.