1. Usage

  • Prepare the data:

    • Download datasets LEVIR, WHU, and SYSU
    • Generate list file as ls -R ./label/* > test.txt
    • Prepare datasets into the following structure and set their path in train.py and test.py
    ├─Train
        ├─A        ...jpg/png
        ├─B        ...jpg/png
        ├─label    ...jpg/png
        └─list     ...txt
    ├─Val
        ├─A
        ├─B
        ├─label
        └─list
    ├─Test
        ├─A
        ├─B
        ├─label
        └─list
    
  • Prerequisites for Python:

    • Creating a virtual environment in the terminal: conda create -n PGPANet python=3.8
    • Installing necessary packages: pip install -r requirements.txt