PaddlePaddle/PaddleSeg

执行 python src/download_inference_models.py 命令时,报以下错误

1a1aca opened this issue · 0 comments

问题确认 Search before asking

  • 我已经搜索过问题,但是没有找到解答。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 paddleseg.utils.download import download_file_and_uncompress
File "D:\Users\Administrator\anaconda3\envs\paddle22\lib\site-packages\paddleseg_init_.py", line 15, in
from . import models, datasets, transforms, optimizers
File "D:\Users\Administrator\anaconda3\envs\paddle22\lib\site-packages\paddleseg\models_init_.py", line 15, in
from .backbones import *
File "D:\Users\Administrator\anaconda3\envs\paddle22\lib\site-packages\paddleseg\models\backbones_init_.py", line 15, 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 . import functional, initializer, quant, utils # noqa: F401
File "D:\Users\Administrator\anaconda3\envs\paddle22\lib\site-packages\paddle\nn\functional_init_.py", line 18, in
from .activation import (
File "D:\Users\Administrator\anaconda3\envs\paddle22\lib\site-packages\paddle\nn\functional\activation.py", line 16, 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>