不能进行模型训练

0 投票
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。

7月 26 分类:  69次浏览 | 用户: liuliang (1 分)

1个回答

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

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

idesktopx里自带的python环境删除,然后添加上一步下载的环境包里python环境,这样既可解决缺少模块的问题。
7月 26 用户: 杨兵 名扬四海 (1,040 分)
...