PaddlePaddle / PaddleSeg

Easy-to-use image segmentation library with awesome pre-trained model zoo, supporting wide-range of practical tasks in Semantic Segmentation, Interactive Segmentation, Panoptic Segmentation, Image Matting, 3D Segmentation, etc.
https://arxiv.org/abs/2101.06175
Apache License 2.0
8.69k stars 1.68k forks source link

export 导出报错 #1226

Closed Jinya90 closed 3 years ago

Jinya90 commented 3 years ago

python export.py \ --config configs/quick_start/bisenet_optic_disc_512x512_1k.yml \ --model_path output/iter_1000/model.pdparams

报错提示:AttributeError: 'Assign' object has no attribute 'type_comment' 用的版本是2.1的

wuyefeilin commented 3 years ago

更新到2.2试一下哈

Jinya90 commented 3 years ago

更新到2.2之后也会报一样的错误,有没有可能和python的版本有关,我这边用的python3.7

wuyefeilin commented 3 years ago

我这边用python3.7没有复现你的错误,请问你用的windows系统吗? 另外详细的报错信息给一下哈

Jinya90 commented 3 years ago

目前解决了,是gast版本问题,改为0.3.3就可以了