Skip to content
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

NotImplementedError #23

Open
jihyunRS opened this issue Jun 27, 2024 · 3 comments
Open

NotImplementedError #23

jihyunRS opened this issue Jun 27, 2024 · 3 comments

Comments

@jihyunRS
Copy link

Thank you very much for sharing your research code.

I have one question, and I hope you can help me.

In the files main_finetune.py, main_pretrain.py, and test_gpu, the datasets are set to POTSDAM, VAIHNGEN, and ISAID, instead of the FAST, SOTA, and SIOR datasets that you uploaded to OneDrive. Should I modify the code to use the FAST, SOTA, and SIOR datasets instead?

Looking forward to your response.
Thank you so much.

@DotWang
Copy link
Collaborator

DotWang commented Jun 27, 2024

@jihyunRS are you sure? We have set a dataset class using FAST, SOTA, and SIOR in main_pretrain.py (line 189-205). The POTSDAM, VAIHNGEN, and ISAID is only adopted in 'main_finetune.py'.

@jihyunRS
Copy link
Author

I checked the main_pretrain.py file again and it indeed uses SOTA, SIOR, and FAST datasets.

So, for implementing SAMRS, do I need to download the POTSDAM, VAIHINGEN, ISAID, and HSRC2016 datasets separately and set the paths accordingly?

Thank you very much for your prompt response.

@DotWang
Copy link
Collaborator

DotWang commented Jun 27, 2024

@jihyunRS Yes, POTSDAM, VAIHINGEN, ISAID are segmentation datasets that are only used for finetuning the model pretrained on SAMRS, while HSRC2016 is a detection dataset that is used to determine the optimal prompt for constructing SAMRS.

So if you only need to use SAMRS, you only need to download public RS segmentation datasets, such as POTSDAM, VAIHINGEN, ISAID, SpaceNetv1 and LoveDA But you may need to manually conduct the data preprocessing, like cropping, label conversion, etc.

By the way, the afmentioned last two datasets are used in our newly recent research: improving RS foundation model by multitask pretraining (MTP), which also uses the SAMRS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants