我安装的paddlepaddle是2.4.2版本,但我运行量化分析工具\example\post_training_quantization\detection\analysis.py报错
我直接打开python ,执行import paddleslim也是报同样的错
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
import paddleslim
/home/deepiot/anaconda3/envs/paddle2.4/lib/python3.8/site-packages/_distutils_hack/init.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
2023-05-31 17:36:22,721-WARNING: No module named 'paddle.static.quantization'
2023-05-31 17:36:22,721-WARNING: If you want to use training-aware and post-training quantization, please use Paddle >= 2.3.0 or develop version
Traceback (most recent call last):
File "", line 1, in
File "/home/deepiot/ai/PaddleSlim/paddleslim/init.py", line 20, in
from paddleslim import quant
File "/home/deepiot/ai/PaddleSlim/paddleslim/quant/init.py", line 42, in
from . import nn
File "/home/deepiot/ai/PaddleSlim/paddleslim/quant/nn/init.py", line 15, in
from .conv_bn import QuantedConv2DBatchNorm, Conv2DBatchNormWrapper
File "/home/deepiot/ai/PaddleSlim/paddleslim/quant/nn/conv_bn.py", line 21, in
from paddle.nn.quant.format import ConvertibleQuantedLayer
ModuleNotFoundError: No module named 'paddle.nn.quant.format'
我安装的paddlepaddle是2.4.2版本,但我运行量化分析工具\example\post_training_quantization\detection\analysis.py报错 我直接打开python ,执行import paddleslim也是报同样的错 [GCC 11.2.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.