首页 / 浏览问题 / 桌面GIS / 问题详情
不能进行模型训练
1EXP 2021年07月26日
Traceback (most recent call last):
  File "<input>", line 9, in <module>
  File "E:\supermap\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:\supermap\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:\supermap\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:\supermap\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:\supermap\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:\supermap\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'

iDesktopX 10i是10.1.2版本,objectspy是10.0.1,python是3.6.6。

1个回答

建议objectspy的版本用10.1.2,与idesktopx保持一致的版本。

建议下载iobjects python env cpu或env gpu环境包,它是一个mini conda环境,里面有python环境,同时包含iobjectspy模块,以及机器学习模块等所有环境。(报错提示指缺少机器学习的模块。)

idesktopx里自带的python环境删除,然后添加上一步下载的环境包里python环境,这样既可解决缺少模块的问题。
1,520EXP 2021年07月26日
...