Spaces:
Runtime error
Runtime error
| title: Cloudseg | |
| emoji: π | |
| colorFrom: blue | |
| colorTo: red | |
| sdk: gradio | |
| sdk_version: 4.40.0 | |
| app_file: app.py | |
| pinned: false | |
| license: apache-2.0 | |
| # Cloud Segmentation | |
| [](https://huggingface.co/spaces/caixiaoshun/cloudseg) | |
| [](https://github.com/pre-commit/pre-commit) | |
| [](https://pytorch.org/get-started/locally/) | |
| [](https://pytorchlightning.ai/) | |
| [](https://hydra.cc/) | |
| [](https://github.com/XavierJiezou/cloudseg#license) | |
| [](https://github.com/XavierJiezou/cloudseg/graphs/contributors) | |
| [](https://github.com/ashleve/lightning-hydra-template) | |
| [](https://www.nature.com/articles/nature14539) | |
| [](https://papers.nips.cc/paper/2020) | |
| ## Datasets | |
| ```bash | |
| cloudseg | |
| βββ src | |
| βββ configs | |
| βββ data | |
| β βββ hrcwhu | |
| β β βββ train.txt | |
| β β βββ test.txt | |
| β β βββ img_dir | |
| β β β βββ train | |
| β β β βββ test | |
| β β βββ ann_dir | |
| β β β βββ train | |
| β β β βββ test | |
| ``` | |
| ## Supported Methods | |
| - [UNet (MICCAI 2016)](configs/model/unet) | |
| - [CDNetv1 (TGRS 2019)](configs/model/cdnetv1) | |
| - [CDNetv2 (TGRS 2021)](configs/model/cdnetv2) | |
| - [DBNet (TGRS 2022)](configs/model/dbnet) | |
| - [HrCloudNet (JEI 2024)](configs/model/hrcloudnet) | |
| - [McdNet (International Journal of Applied Earth Observation and Geoinformation 2024)](configs/model/mcdnet) | |
| - [Scnn (ISPRS 2024)](configs/model/scnn) | |
| ## Installation | |
| ```bash | |
| git clone https://github.com/XavierJiezou/cloudseg.git | |
| cd cloudseg | |
| conda env create -f environment.yaml | |
| conda activate cloudseg | |
| ``` | |
| ## Usage | |
| **Train model with default configuration** | |
| ```bash | |
| # train on CPU | |
| python src/train.py trainer=cpu | |
| # train on GPU | |
| python src/train.py trainer=gpu | |
| ``` | |
| **Train model with chosen experiment configuration from [configs/experiment/](configs/experiment/)** | |
| ```bash | |
| python src/train.py experiment=experiment_name.yaml | |
| ``` | |
| **Tranin Example** | |
| ```bash | |
| python src/train.py experiment=hrcwhu_cdnetv1.yaml | |
| ``` | |
| **You can override any parameter from command line like this** | |
| ```bash | |
| python src/train.py trainer.max_epochs=20 data.batch_size=64 | |
| ``` | |
| **Visualization in wandb** | |
| ```bash | |
| python wand_vis.py --model-name model_name | |
| ``` | |
| **Example** | |
| ```bash | |
| python wand_vis.py --model-name cdnetv1 | |
| ``` | |