PaddleSeg
PaddleSeg copied to clipboard
执行 python src/download_inference_models.py 命令时,报以下错误
问题确认 Search before asking
- [X] 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.
请提出你的问题 Please ask your question
Installing collected packages: paddleseg
Successfully installed paddleseg-2.8.0
PS E:\Python Projects\PaddleSegTest5\PaddleSeg\contrib\PP-HumanSeg> python src/download_inference_models.py
Traceback (most recent call last):
File "E:\Python Projects\PaddleSegTest5\PaddleSeg\contrib\PP-HumanSeg\src\download_inference_models.py", line 22, in
from .hrnet import *
File "D:\Users\Administrator\anaconda3\envs\paddle22\lib\site-packages\paddleseg\models\backbones\hrnet.py", line 18, in
import paddle.nn as nn
File "D:\Users\Administrator\anaconda3\envs\paddle22\lib\site-packages\paddle\nn_init_.py", line 15, in
from paddle import _C_ops, legacy_C_ops, in_dynamic_mode
ImportError: cannot import name 'in_dynamic_mode' from 'paddle' (D:\Users\Administrator\anaconda3\envs\paddle22\lib\site-packages\paddle_init.py)
PS E:\Python Projects\PaddleSegTest5\PaddleSeg\contrib\PP-HumanSeg>