AI4RS / UAD-RS

[JAG 2024] UAD-RS: Universal adversarial defense in remote sensing based on pre-trained denoising diffusion models
MIT License
10 stars 0 forks source link

Data directory structure is different from me. #4

Open xxxolllllllll opened 4 weeks ago

xxxolllllllll commented 4 weeks ago

this is your data Directory structure below, in which "UCMerced_LandUse" directory structure and "AID" directory structure is same to mine, but the "Vaihingen" directory structure and "Zurich" directory structure is different from mine. ’‘’ ├── / │ ├── UCMerced_LandUse/
| | ├── agricultural/ | | ├── airplane/ | | ├── ... │ ├── AID/
| | ├── Airport/ | | ├── BareLand/ | | |── ... │ ├── Vaihingen/
| | ├── top_mosaic_09cm_area1_0.png | | ├── top_mosaic_09cm_area1_1.png | | ├── ... │ ├── Zurich/
| | ├── zh1_0.png | | ├── zh1_1.png | | ├── ... ‘’‘ Vaihingen and Zurich Directory is stored in my computer like below.
image image

EricYu97 commented 4 weeks ago

Hi,

We cropped the images into 256*256 patches and stored them in our directory like this structure, so you will need to preprocess the data first. The original data should be very large and not suitable as the model input.

xxxolllllllll commented 4 weeks ago

Hi,

generate_pretraining_data.py seems to crop images which are selected in the two lists, list_zurich and list_vaihingen,but it just crops images under zurich/gt/ and zurich/img/.

xxxolllllllll commented 4 weeks ago

Hi, Another problem is the format of image is tif, but the project uses png,So should I convert format first?