caixiaoshun commited on
Commit
336e69e
·
1 Parent(s): 8a818ce

README更新

Browse files
Files changed (1) hide show
  1. README.md +91 -13
README.md CHANGED
@@ -1,13 +1,91 @@
1
- ---
2
- title: Cloudseg
3
- emoji: 📚
4
- colorFrom: blue
5
- colorTo: red
6
- sdk: gradio
7
- sdk_version: 4.40.0
8
- app_file: app.py
9
- pinned: false
10
- license: apache-2.0
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Cloud Segmentation
2
+
3
+ [![demo](https://img.shields.io/badge/🤗HugginngFace-Spaces-orange)](https://huggingface.co/spaces/caixiaoshun/cloudseg)
4
+ [![python](https://img.shields.io/badge/-Python_3.8_%7C_3.9_%7C_3.10-blue?logo=python&logoColor=white)](https://github.com/pre-commit/pre-commit)
5
+ [![pytorch](https://img.shields.io/badge/PyTorch_2.0+-ee4c2c?logo=pytorch&logoColor=white)](https://pytorch.org/get-started/locally/)
6
+ [![lightning](https://img.shields.io/badge/-Lightning_2.0+-792ee5?logo=pytorchlightning&logoColor=white)](https://pytorchlightning.ai/)
7
+ [![hydra](https://img.shields.io/badge/Config-Hydra_1.3-89b8cd)](https://hydra.cc/)
8
+ [![license](https://img.shields.io/badge/License-MIT-green.svg?labelColor=gray)](https://github.com/XavierJiezou/cloudseg#license)
9
+ [![contributors](https://img.shields.io/github/contributors/XavierJiezou/cloudseg.svg)](https://github.com/XavierJiezou/cloudseg/graphs/contributors)
10
+ [![Template](https://img.shields.io/badge/-Lightning--Hydra--Template-017F2F?style=flat&logo=github&labelColor=gray)](https://github.com/ashleve/lightning-hydra-template)
11
+ [![Paper](http://img.shields.io/badge/paper-arxiv.1001.2234-B31B1B.svg)](https://www.nature.com/articles/nature14539)
12
+ [![Conference](http://img.shields.io/badge/AnyConference-year-4b44ce.svg)](https://papers.nips.cc/paper/2020)
13
+
14
+ ## Datasets
15
+
16
+ ```bash
17
+ cloudseg
18
+ ├── src
19
+ ├── configs
20
+ ├── data
21
+ │ ├── hrcwhu
22
+ │ │ ├── train.txt
23
+ │ │ ├── test.txt
24
+ │ │ ├── img_dir
25
+ │ │ │ ├── train
26
+ │ │ │ ├── test
27
+ │ │ ├── ann_dir
28
+ │ │ │ ├── train
29
+ │ │ │ ├── test
30
+ ```
31
+
32
+ ## Supported Methods
33
+
34
+ - [UNet (MICCAI 2016)](configs/model/unet)
35
+ - [CDNetv1 (TGRS 2019)](configs/model/cdnetv1)
36
+ - [CDNetv2 (TGRS 2021)](configs/model/cdnetv2)
37
+ - [DBNet (TGRS 2022)](configs/model/dbnet)
38
+ - [HrCloudNet (JEI 2024)](configs/model/hrcloudnet)
39
+ - [McdNet (International Journal of Applied Earth Observation and Geoinformation 2024)](configs/model/mcdnet)
40
+ - [Scnn (ISPRS 2024)](configs/model/scnn)
41
+
42
+ ## Installation
43
+
44
+ ```bash
45
+ git clone https://github.com/XavierJiezou/cloudseg.git
46
+ cd cloudseg
47
+ conda env create -f environment.yaml
48
+ conda activate cloudseg
49
+ ```
50
+
51
+ ## Usage
52
+
53
+ **Train model with default configuration**
54
+
55
+ ```bash
56
+ # train on CPU
57
+ python src/train.py trainer=cpu
58
+
59
+ # train on GPU
60
+ python src/train.py trainer=gpu
61
+ ```
62
+
63
+ **Train model with chosen experiment configuration from [configs/experiment/](configs/experiment/)**
64
+
65
+ ```bash
66
+ python src/train.py experiment=experiment_name.yaml
67
+ ```
68
+
69
+ **Tranin Example**
70
+
71
+ ```bash
72
+ python src/train.py experiment=hrcwhu_cdnetv1.yaml
73
+ ```
74
+
75
+ **You can override any parameter from command line like this**
76
+
77
+ ```bash
78
+ python src/train.py trainer.max_epochs=20 data.batch_size=64
79
+ ```
80
+
81
+ **Visualization in wandb**
82
+
83
+ ```bash
84
+ python wand_vis.py --model-name model_name
85
+ ```
86
+
87
+ **Example**
88
+
89
+ ```bash
90
+ python wand_vis.py --model-name cdnetv1
91
+ ```