install.md 1.1 KB
Newer Older
Sugon_ldc's avatar
Sugon_ldc committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
简体中文 | [English](install_en.md)

## 安装使用

EISeg提供多种安装方式,其中使用[pip](#PIP)[运行代码](#运行代码)方式可兼容Windows,Mac OS和Linux。为了避免环境冲突,推荐在conda创建的虚拟环境中安装。

版本要求:

* PaddlePaddle >= 2.2.0

PaddlePaddle安装请参考[官网](https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/pip/windows-pip.html)

### 克隆到本地
通过git将PaddleSeg克隆到本地:

```shell
git clone https://github.com/PaddlePaddle/PaddleSeg.git
```

安装所需环境(若需要使用到GDAL和SimpleITK请参考**垂类分割**进行安装):

```shell
pip install -r requirements.txt
```

安装好所需环境后,进入EISeg,可通过直接运行eiseg打开EISeg:

```shell
cd PaddleSeg\EISeg
python -m eiseg
```

或进入eiseg,运行exe.py打开EISeg:

```shell
cd PaddleSeg\EISeg\eiseg
python exe.py
```


### PIP

pip安装方式如下:

```shell
pip install eiseg
```
pip会自动安装依赖。安装完成后命令行输入:
```shell
eiseg
```
即可运行软件。