首页 / 浏览问题 / 桌面GIS / 问题详情
SuperMap10i 二元分类报错,求解答!!急急急!
9EXP 2021年09月29日

桌面软件版本:

supermap-iobjectspy版本

训练数据生成:

报错:

PyDev console: starting.

Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)] 
[iObjectsPy]: Connection gateway-service successful, Python callback port bind 61003

Traceback (most recent call last):
  File "<input>", line 11, in <module>
  File "E:\software\supermap iDesktopX 10i\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:\software\supermap iDesktopX 10i\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:\software\supermap iDesktopX 10i\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:\software\supermap iDesktopX 10i\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:\software\supermap iDesktopX 10i\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:\software\supermap iDesktopX 10i\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 15, in <module>
ImportError: cannot import name 'ImageCompression'
 

求大哥解答疑问!!!!!!!!!!!!!!!!!!!!!    小白崩了!!!!!!!

1个回答

从ImportError: cannot import name 'ImageCompression'导入模块失败的错误提示看,可能是版本不一致问题,建议将env-cpu环境包也升级为10.1.2,保持与idesktopx版本一致。
1,520EXP 2021年10月08日
...