EISeg标注环境配置

作者:Kinglong    发表时间:2022-09-28 19:10   

关键词Paddle

版本要求:Paddle >= 2.2.0
 
安装paddle  
pip install paddle
pip install paddlepaddle
 
paddlepaddle 2.3.2 requires astor, which is not installed.
paddlepaddle 2.3.2 requires opt-einsum==3.3.0, which is not installed.
paddlepaddle 2.3.2 requires paddle-bfloat==0.1.7, which is not installed.
paddlepaddle 2.3.2 requires protobuf<=3.20.0,>=3.1.0, but you'll have protobuf 4.21.6 which is incompatible.
 
安装paddle 依赖项
pip install astor
pip install opt-einsum==3.3.0
pip install paddle-bfloat==0.1.7
pip install protobuf==3.19.0
 
通过git将PaddleSeg克隆到本地:
git clone https://github.com/PaddlePaddle/PaddleSeg.git
 
安装所需环境(若需要使用到GDAL和SimpleITK请参考垂类分割进行安装):
pip install -r requirements.txt
 
安装qtpy
pip install qtpy
 
安装PyQt5
ModuleNotFoundError: No module named 'PyQt5'
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple PyQt5
 
安装easydict
ModuleNotFoundError: No module named 'easydict'
pip install easydict
 
安装scikit-image
ModuleNotFoundError: No module named 'skimage'
pip install scikit-image
 
安装decorator
ModuleNotFoundError: No module named 'decorator'
pip install decorator
 
安装好所需环境后,进入EISeg,可通过直接运行eiseg打开EISeg:
cd EISeg
python -m eiseg
或进入eiseg,运行exe.py打开EISeg:
 

安装模型预训练权重,模型下载地址:
file:///C:/Users/HT007/Downloads/static_hrnet18s_ocr48_lits.zip
https://paddleseg.bj.bcebos.com/eiseg/0.4/static_hrnet18s_ocr48_lits.zip
https://paddleseg.bj.bcebos.com/eiseg/0.4/static_hrnet18_ocr48_rsbuilding_instance.zip
https://paddleseg.bj.bcebos.com/eiseg/0.4/static_edgeflow_cocolvis.zip
https://paddleseg.bj.bcebos.com/eiseg/0.4/static_hrnet18s_ocr48_human.zip
https://paddleseg.bj.bcebos.com/eiseg/0.4/static_hrnet18_ocr64_human.zip
https://paddleseg.bj.bcebos.com/eiseg/0.4/static_hrnet18_ocr64_cocolvis.zip
https://paddleseg.bj.bcebos.com/eiseg/0.4/static_hrnet18s_ocr48_cocolvis.zip