Recently, I tested your code and replaced the loss with cross-entropy loss. In addition to this, I also change a few last codes in Res50.py. I got good accuracy in LEVIR-CD and CDD datasets. The F1 scores are 90.99 and 96.38, respectively. If you are interested in my work, you can contact me. My email is f64051041@gmail.com .
Recently, I tested your code and replaced the loss with cross-entropy loss. In addition to this, I also change a few last codes in Res50.py. I got good accuracy in LEVIR-CD and CDD datasets. The F1 scores are 90.99 and 96.38, respectively. If you are interested in my work, you can contact me. My email is f64051041@gmail.com .