likyoo / open-cd

A Change Detection Repo Standing on the Shoulders of Giants
https://arxiv.org/abs/2407.15317
Apache License 2.0
533 stars 76 forks source link

请问如何处理遥感的tif图像 #125

Open Alexisxty opened 2 weeks ago

bhq12 commented 1 week ago

tif files are already supported, so you shouldn't have to do anything different than a normal image dataset.

There is already an example datasets with .tif images (RSIPAC_CD). So for example: opencd/datasets/rsipac_cd.py

If you have your own .tif image dataset you'll have to:

Where the only specific thing you need is to define the img_suffix='.tif' in your dataset class