idesktopx 10i2020版,操作系统windows 10 专业版。试用机器学习时,安装指定的python环境后运行依然报错ImportError: cannot import name 'ImageCompression'。
conda版本:按官网路径下载的supermap-iobjectspy-env-gpu-10.0.1-20200102-win64下的conda环境;
python配置:按官网教程和帮助中的步骤配置的环境。
模型训练:采用官网提供的supermap-iobjectspy-resources_ml-10.0.0-20190926\resources_ml中的示例数据运行二分类训练,报错;
报错信息如下:
PyDev console: starting.
Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 11:27:44) [MSC v.1900 64 bit (AMD64)]
[iObjectsPy]: Connection gateway-service successful, Python callback port bind 52871
Traceback (most recent call last):
File "<input>", line 9, in <module>
File "E:\BaiduNetdiskDownload\supermap-idesktopx-10.1.0-0929-4835-82307-win64-bin-zip-chs\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "D:\BuildAgent\work\test/iobjectspy/ml\vision\__init__.py", line 1, in <module>
File "E:\BaiduNetdiskDownload\supermap-idesktopx-10.1.0-0929-4835-82307-win64-bin-zip-chs\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "D:\BuildAgent\work\test/iobjectspy/ml\vision\_datapreparation.py", line 6, in <module>
File "E:\BaiduNetdiskDownload\supermap-idesktopx-10.1.0-0929-4835-82307-win64-bin-zip-chs\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "D:\BuildAgent\work\test/iobjectspy/ml\vision\_dataprepare_collector\__init__.py", line 1, in <module>
File "E:\BaiduNetdiskDownload\supermap-idesktopx-10.1.0-0929-4835-82307-win64-bin-zip-chs\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "D:\BuildAgent\work\test/iobjectspy/ml\vision\_dataprepare_collector\object_detection_training_data.py", line 1, in <module>
File "E:\BaiduNetdiskDownload\supermap-idesktopx-10.1.0-0929-4835-82307-win64-bin-zip-chs\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "D:\BuildAgent\work\test/iobjectspy/ml\vision\_sample\create_object_detection_data_mask.py", line 16, in <module>
File "E:\BaiduNetdiskDownload\supermap-idesktopx-10.1.0-0929-4835-82307-win64-bin-zip-chs\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "D:\BuildAgent\work\test/iobjectspy/ml\toolkit\_toolkit.py", line 24, in <module>
ImportError: cannot import name 'ImageCompression'