-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How could use? #6
Comments
Hi @p00uya, Thank you for your interest in our work and welcome! The easiest way to get predictions for your samples is to copy and paste your pre-change (A) and post-change (B) images to one of the Please note that our model is trained on remote sensing images and it may not give correct predictions if you are testing it with images from a separate domain. In that case, I recommend you to tune our model for your dataset to get better results. To do that, you need to follow the training procedure mentioned in the latter part of the readme file. Please let me know if you need any further help and I'm happy to help you! |
Ok, I did this the name of img was t1.png , I got the following error |
@p00uya the ground truth change mask is used to compute the performance metrics such as IoU and accuracy. Since you don’t have the ground truth labels, place a dummy black png there with same size as your pre-change and post-change imgaes. Or you can comment those lines in the code too. |
@wgcban |
Hi @p00uya, |
Hi @p00uya |
Hi @p00uya , Best, |
Yes, you are right |
Hi,wgcban |
Hey @yuanjian2022, You are using the wrong model to initialize. As the name infer "LEVIER-CD\CD_ChangeFormerV6_LEVIR_b16_lr0.0001_adamw_train_test_200_linear_ce_multi_train_True_multi_infer_False_shuffle_AB_False_embed_dim_256\best_ckpt.pt" is the model trained on LEVIR-CD and not on the DSIFN CD. You should use: DSIFN-CD-Pretrained-Model. Please use the model trained on DSIFN-CD to initialize the model if you are trying to reproduce results on DSIFN-CD. I have linked pre-trained models for each dataset in the readme file. Please see: Quick Start on DSFIN dataset. Or you can simply run the demo file for the DSIFN dataset. Please let me know if you have any questions! Best, |
Hello,Chaminda |
When training on the DSIFN dataset, I initialized the ChangeFormerV6 with the model trained onLEVIR-CD for faster convergence. Since we have trained models for both LEVIR-CD and WHU-CD, I recommend you to do the same when training on DSIFN or another dataset. |
Hi,Chaminda |
Nice! |
|
Sorry,No results similar to the log were obtained on the DSIFN dataset. What I mean above is that neither of the two pretrained models given by the author can make the model converge on the DSIFN dataset. |
Hey @yuanjian2022 @WesleyZhang1991 |
@wgcban I am afraid there is some unmentioned data augmentations in the current code for DSIFN, e.g., disabled random rotation, only 0.8-1.2 random scale seems not enough for DSIFN |
Hi @WeslyZhang1991, Best |
Hi wgcban! |
Hi @mabel2022, Thank you for your interest in our work! You are correct. The output from the transformer decoder This is the place where we configure the multi-scale loss function in the config file:
This is the place where we compute the multi-scale CD loss: ChangeFormer/models/trainer.py Lines 295 to 306 in fbe2f9e
The multi-scale loss function is commonly used in CD to improve the quality of predicted change maps at multiple scales. You can read more on the multi-scale loss function for CD here. During the inference, we use the output prediction at the HxW scale ( i.e., If This is the place where we get the final prediction from the network during the inference. ChangeFormer/models/trainer.py Lines 281 to 290 in fbe2f9e
I hope this clarifies your question and I'm happy to help you if you have any more questions. Best, |
Hi Chaminda! |
Hi, I'm very interested in using your code in my project. I was able to run demo scripts. Now I want to use your code for my own data, but unfortunately I do not know how I can do this on my data. I put them in files A, B But I think I need guidance to test
Please tell me how I can find a difference for my images
(I am a newcomer, thank you)
The text was updated successfully, but these errors were encountered: