wgcban / ChangeFormer

[IGARSS'22]: A Transformer-Based Siamese Network for Change Detection
https://www.wgcban.com/research#h.e51z61ujhqim
MIT License
420 stars 56 forks source link

Query regarding role of label images in the samples_LEVIR folder for making predictions. #68

Closed SouravSarkar865 closed 1 year ago

SouravSarkar865 commented 1 year ago

Why are there images in the label folder for the test images? I wanted to do predict the change between two custom images from my own dataset, so I put one image in the A folder and another in the B folder and added its name to the txt file in the list folder. After that,while running the demo_LEVIR.py file, I got an error stating there was no file corresponding to my custom images in the label folder. So I am wondering why would I need labels for making prediction. Kindly help me understand and correct me if I have interpreted it wrongly. Thank you.

wgcban commented 1 year ago

@SouravSarkar865 thanks for your question. I think someone else also asked this previously. The reason why you need the label for test image is just for comparison and computing the quantitative metrics. If you don't have the actual ground truth for your testing image, replace that with a dummy image which has the same size as testing image or comment those lines which uses label in the demo code. Let me know if this clarifies your question.

SouravSarkar865 commented 1 year ago

Thanks a lot for the response, it did clarify my question.