首页 / 浏览问题 / 桌面GIS / 问题详情
机器学习模型训练报错
28EXP 2024年06月28日
PyDev console: starting.

Python 3.7.6 (default, Jan  8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] 
[iObjectsPy]: The Gateway service started successfully

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\SuperMap\SuperMap iDesktopX 11i\resources\python-helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "C:\SuperMap\SuperMap iDesktopX 11i\resources\python-helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "C:\Users\admin\AppData\Local\Temp\model_train_58.py", line 10, in <module>
    from iobjectspy.ml.vision import ImageryTrainer
  File "C:\SuperMap\SuperMap iDesktopX 11i\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "I:\teamctiy\BuildAgent\work\test_111x/iobjectspy/ml\vision\__init__.py", line 1, in <module>
  File "C:\SuperMap\SuperMap iDesktopX 11i\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "I:\teamctiy\BuildAgent\work\test_111x/iobjectspy/ml\vision\_datapreparation.py", line 11, in <module>
  File "C:\SuperMap\SuperMap iDesktopX 11i\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "I:\teamctiy\BuildAgent\work\test_111x/iobjectspy/ml\vision\_dataprepare_collector\__init__.py", line 1, in <module>
  File "C:\SuperMap\SuperMap iDesktopX 11i\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "I:\teamctiy\BuildAgent\work\test_111x/iobjectspy/ml\vision\_dataprepare_collector\object_detection_training_data.py", line 3, in <module>
  File "C:\SuperMap\SuperMap iDesktopX 11i\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "I:\teamctiy\BuildAgent\work\test_111x/iobjectspy/ml\vision\_sample\create_object_detection_data_mask.py", line 10, in <module>
  File "C:\SuperMap\SuperMap iDesktopX 11i\resources\python-helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'rasterio'

如上 目标检测 MMdet 

前提:之前用训练数据生成的结果文件进行模型训练成功出结果了

1个回答

您好,这个报错提示你的Python环境中缺少名为rasterio的模块,需要安装rasterio模块。
1,020EXP 2024年06月28日
...