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

Scene Classification EuroSAT RGB or Multispectral? #30

Open
ayush-AkulaTech opened this issue Dec 10, 2024 · 5 comments
Open

Scene Classification EuroSAT RGB or Multispectral? #30

ayush-AkulaTech opened this issue Dec 10, 2024 · 5 comments

Comments

@ayush-AkulaTech
Copy link

Hi,
Just wondering if the fine-tuning on the EuroSAT dataset is using the RGB variant or the "all" variant of EuroSAT which contained the 13 spectral channels.

If RGB, is it easily compatible to fine-tune further/inference on multispectral data and see how it performs? Thanks!

@DotWang
Copy link
Collaborator

DotWang commented Dec 10, 2024

@ayush-AkulaTech we use RGB,

It can be finetuned on multispectral, after the dataloader and number of input channels changed

may be this issue is useful for you: #9

@ayush-AkulaTech
Copy link
Author

ayush-AkulaTech commented Dec 17, 2024

@DotWang Thank you for your reply, I have another issue for the scene classification models:

It looks like the output predictions saved in the --show-dir directory are in BGR format. I’m puzzled by the to_rgb=True option in the data preprocessing section of the config. Changing it to False or True doesn’t seem to affect the final output format, but I noticed that setting it to False significantly drops the model's accuracy, so I assume the BGR conversion is somewhere later in the pipeline as the predictions are saved.

Could you clarify what format is actually used for saving the predictions? Does it use OpenCV or PIL? I’d appreciate any clarification on these points!

@DotWang
Copy link
Collaborator

DotWang commented Dec 17, 2024

@DotWang the process you mentioned is control by the mmcv, but I'm curious about why the scene classification can produce a result map?

@ayush-AkulaTech
Copy link
Author

@DotWang it results in an output which is the image (in BGR) with the prediction and ground truth label, not necessarily a "result map" if that's what you mean. Also as a side note, just wondering if you've tried exporting the model in ONNX format? Thanks!

@DotWang
Copy link
Collaborator

DotWang commented Dec 17, 2024

@ayush-AkulaTech So you are doing semantic segmentation instead of scene classification, right? We have not tried exporting the model in ONNX format. In my idea, the visualization of segmentation is controled by the SegLocalVisualizer function in mmsegmentation.

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