PaddlePaddle / PaddleSlim

PaddleSlim is an open-source library for deep model compression and architecture search.
https://paddleslim.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.56k stars 345 forks source link

模型蒸馏报错 #1131

Closed guoxuntao closed 2 years ago

guoxuntao commented 2 years ago

报错信息: [05-21 17:39:33 MainThread @logger.py:242] Argv: PaddleSeg-develop/slim/distill/distill_train.py --teather_config PaddleSeg-develop/configs/quick_start/deeplabv3p_resnet50_os8_optic_disc_512x512_1k_teacher.yml --student_config PaddleSeg-develop/configs/quick_start/deeplabv3p_resnet18_os8_optic_disc_512x512_1k_student.yml --do_eval --use_vdl --save_interval 250 --num_workers 3 --seed 0 --save_dir output/deeplabv3p_resnet18_distill [05-21 17:39:33 MainThread @utils.py:79] WRN paddlepaddle version: 2.3.0. The dynamic graph version of PARL is under development, not fully tested and supported /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/parl/remote/communication.py:38: DeprecationWarning: 'pyarrow.default_serialization_context' is deprecated as of 2.0.0 and will be removed in a future version. Use pickle or the pyarrow IPC functionality instead. context = pyarrow.default_serialization_context() /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/init.py:107: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import MutableMapping /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/rcsetup.py:20: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Iterable, Mapping /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/colors.py:53: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Sized /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddleslim-1.0.0-py3.7.egg/paddleslim/nas/ofa/layersold.py:151: DeprecationWarning: invalid escape sequence \ /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddleslim-1.0.0-py3.7.egg/paddleslim/nas/ofa/layers_old.py:460: DeprecationWarning: invalid escape sequence \s /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddleslim-1.0.0-py3.7.egg/paddleslim/nas/ofa/layersold.py:151: DeprecationWarning: invalid escape sequence \ /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddleslim-1.0.0-py3.7.egg/paddleslim/nas/ofa/layers_old.py:460: DeprecationWarning: invalid escape sequence \s Traceback (most recent call last): File "PaddleSeg-develop/slim/distill/distill_train.py", line 30, in from distill_config import prepare_distill_adaptor, prepare_distill_config File "/home/aistudio/PaddleSeg-develop/slim/distill/distill_config.py", line 15, in from paddleslim.dygraph.dist import AdaptorBase ImportError: cannot import name 'AdaptorBase' from 'paddleslim.dygraph.dist' (/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddleslim-1.0.0-py3.7.egg/paddleslim/dygraph/dist/init.py) 用的paddle是2.3gpu版本,slim是2.3版本

ceci3 commented 2 years ago

这个demo看起来是比较早期的一个demo了~ 可能现在跑会有点问题。。