PaddlePaddle / PaddleX

All-in-One Development Tool based on PaddlePaddle(飞桨低代码开发工具)
Apache License 2.0
4.94k stars 968 forks source link

paddlex划分数据集报错 #1529

Open zhaoduanlu opened 2 years ago

zhaoduanlu commented 2 years ago

Checklist:

  1. 查找历史相关issue寻求解答
  2. 翻阅FAQ常见问题汇总和答疑
  3. 确认bug是否在新版本里还未修复
  4. 翻阅PaddleX数据准备文档

描述问题

使用paddlex进行数据集划分时报错

复现

  1. 您使用的命令是? !paddlex --split_dataset --format VOC --dataset_dir squat_detect/DatasetId_215201_1628403652 --val_value 0.2 --test_value 0.01
  2. 您使用的数据集是? VOC
  3. 请提供您出现的报错信息及相关log [06-13 11:26:53 MainThread @logger.py:242] Argv: /opt/conda/envs/python35-paddle120-env/bin/paddlex --split_dataset --format VOC --dataset_dir squat_detect/DatasetId_215201_1628403652 --val_value 0.2 --test_value 0.01 [06-13 11:26:53 MainThread @utils.py:79] WRN paddlepaddle version: 2.1.2. 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/pyarrow/pandas_compat.py:1027: DeprecationWarning: np.float is a deprecated alias for the builtin float. To silence this warning, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations 'floating': np.float, /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 Traceback (most recent call last): File "/opt/conda/envs/python35-paddle120-env/bin/paddlex", line 5, in from paddlex.command import main File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/init.py", line 20, in from . import cv File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/init.py", line 15, in from . import models File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/models/init.py", line 15, in from .segmenter import File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/models/segmenter.py", line 28, in from .base import BaseModel File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/models/base.py", line 25, in from paddleslim import QAT File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddleslim/init.py", line 22, in from paddleslim import dygraph File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddleslim/dygraph/init.py", line 2, in from .quant import File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddleslim/dygraph/quant/init.py", line 16, in from . import ptq File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddleslim/dygraph/quant/ptq.py", line 21, in from paddle.fluid.contrib.slim.quantization import AbsmaxQuantizer ImportError: cannot import name 'AbsmaxQuantizer' from 'paddle.fluid.contrib.slim.quantization' (/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/contrib/slim/quantization/init.py)

环境

  1. 请提供您使用的PaddleX的版本号 paddlex-2.1.0

  2. 请提供您使用的操作系统信息,如Linux/Windows/MacOS Linux

  3. 请问您使用的Python版本是 3.7

  4. aitudio-框架版本PaddlePaddle 2.1.2

lailuboy commented 2 years ago

看起是版本问题,可以升级PaddlePaddle版本 2.3 试试