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

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

Open
Alexisxty opened this issue Oct 7, 2024 · 1 comment
Open

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

Alexisxty opened this issue Oct 7, 2024 · 1 comment

Comments

@Alexisxty
Copy link

No description provided.

@bhq12
Copy link

bhq12 commented Oct 14, 2024

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:

  • Create a new dataset class in opencd/datasets/
  • Add the dataset to opencd/datasets/__init__.py
  • Add a dataset file to configs/base/datasets/

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

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