PaddleSeg
PaddleSeg copied to clipboard
ImportError: cannot import name 'in_dynamic_mode' from 'paddle' (unknown location)
问题确认 Search before asking
- [X] 我已经查询历史issue(包括open与closed),没有发现相似的bug。I have searched the open and closed issues and found no similar bug report.
Bug描述 Describe the Bug
执行导出预测模型时也出现此错误
复现环境 Environment
PS E:\Python Projects\PaddleSegTest2_8\PaddleSeg\contrib\PP-HumanSeg> cd PP-LiteSeg
PS E:\Python Projects\PaddleSegTest2_8\PaddleSeg\contrib\PP-HumanSeg\PP-LiteSeg> python ../../../tools/export.py --config configs/pp_liteseg/pp_liteseg_stdc1_cityscapes_1024x512_scale0.5_160k.yml --model_path PP-LiteSeg/model.pdparams --save_dir inference_model
Traceback (most recent call last):
File "E:\Python Projects\PaddleSegTest2_8\PaddleSeg\tools\export.py", line 21, in
from . import models, datasets, transforms, optimizers
File "D:\Users\Administrator\anaconda3\envs\paddle22\lib\site-packages\paddleseg\models_init_.py", line 15, in
Bug描述确认 Bug description confirmation
- [X] 我确认已经提供了Bug复现步骤、代码改动说明、以及环境信息,确认问题是可以复现的。I confirm that the bug replication steps, code change instructions, and environment information have been provided, and the problem can be reproduced.
是否愿意提交PR? Are you willing to submit a PR?
- [X] 我愿意提交PR!I'd like to help by submitting a PR!