PaddleSlim
PaddleSlim copied to clipboard
没有相应模块
使用如下命令进行自动压缩时出现错误:
%cd /home/aistudio/work/PaddleSlim-develop/
!python demo/auto_compression/detection/run.py --config_path=demo/auto_compression/detection//configs/ppyoloe_l_qat_dist.yaml --eval=True
报错为:
/home/aistudio/work/PaddleSlim-develop
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/tensor/creation.py:130: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
if data.dtype == np.object:
[05-19 11:06:30 MainThread @logger.py:242] Argv: demo/auto_compression/detection/run.py --config_path=demo/auto_compression/detection//configs/ppyoloe_l_qat_dist.yaml --eval=True
[05-19 11:06:30 MainThread @utils.py:79] WRN paddlepaddle version: 2.2.2. The dynamic graph version of PARL is under development, not fully tested and supported
Traceback (most recent call last):
File "demo/auto_compression/detection/run.py", line 23, in <module>
from paddleslim.auto_compression.config_helpers import load_config as load_slim_config
ModuleNotFoundError: No module named 'paddleslim.auto_compression'
您需要使用develop版本安装~
建议不要采用官网这样的安装方式: python install setup.py
采用这种安装方式: pip install git+https://github.com/PaddlePaddle/PaddleSlim.git
nb