PaddleSlim icon indicating copy to clipboard operation
PaddleSlim copied to clipboard

没有相应模块

Open simon-sxx opened this issue 2 years ago • 2 comments

使用如下命令进行自动压缩时出现错误:

%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'

simon-sxx avatar May 19 '22 03:05 simon-sxx

您需要使用develop版本安装~

qingqing01 avatar May 20 '22 06:05 qingqing01

建议不要采用官网这样的安装方式: python install setup.py

采用这种安装方式: pip install git+https://github.com/PaddlePaddle/PaddleSlim.git

tianv avatar Jul 06 '22 07:07 tianv

nb

tongtongwyo avatar Feb 17 '23 07:02 tongtongwyo