Thank you for your reply.
Yes, at first I use 10000 image to train the model. It can predict good for the train dataset after 99 epoch. I use it to train 299 epoch, it can predict almost total same with the ground truth. But it never pridict a good result for the validation datasets.
I will try the nn.BCEWithLogitsLoss . Thank you for your advice.