首页 / 浏览问题 / 桌面GIS / 问题详情
机器学习训练数据生成报错
41EXP 2024年03月14日
Python 3.8.16 | packaged by conda-forge | (default, Feb  1 2023, 15:53:35) [MSC v.1929 64 bit (AMD64)]
[iObjectsPy]: The Gateway service started successfully

Traceback (most recent call last):
  File "rasterio\_base.pyx", line 261, in rasterio._base.DatasetBase.__init__
  File "rasterio\_shim.pyx", line 78, in rasterio._shim.open_dataset
  File "rasterio\_err.pyx", line 216, in rasterio._err.exc_wrap_pointer
rasterio._err.CPLE_OpenFailedError: C:/Users/ADMINI~1/AppData/Local/Temp/tmp6ee21lfj/1710382296197.tif: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "D:\supermap-idesktopx\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 "D:\supermap-idesktopx\resources\python-helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "C:\Users\ADMINI~1\AppData\Local\Temp\create_train_data_2.py", line 14, in <module>
    DataPreparation.create_training_data(input_data=dataset,input_label=dataset_1,label_class_field=None,output_path=r"D:\supermap-idesktopx\test",output_name=r"training_data",training_data_format=r"BINARY_C",tile_format=r"tif",tile_size_x=int(256),tile_size_y=int(256),tile_offset_x=int(0),tile_offset_y=int(0),tile_start_index=int(-1),save_nolabel_tiles=False,input_compare_data=None,input_compare_label=None,input_compared_label_class_field=None)
  File "I:\teamctiy\BuildAgent\work\test_111x/iobjectspy/ml\vision\_datapreparation.py", line 122, in create_training_data
  File "I:\teamctiy\BuildAgent\work\test_111x/iobjectspy/ml\vision\_datapreparation.py", line 216, in create_training_data
  File "I:\teamctiy\BuildAgent\work\test_111x/iobjectspy/ml\vision\_dataprepare_collector\binary_classification_training_data.py", line 18, in create_binary_classification_data
  File "I:\teamctiy\BuildAgent\work\test_111x/iobjectspy/ml\vision\_sample\create_binary_classification_data.py", line 79, in create_binary_classification
  File "D:\supermap-idesktopx\conda\lib\site-packages\rasterio\env.py", line 437, in wrapper
    return f(*args, **kwds)
  File "D:\supermap-idesktopx\conda\lib\site-packages\rasterio\__init__.py", line 228, in open
    s = DatasetReader(path, driver=driver, sharing=sharing, **kwargs)
  File "rasterio\_base.pyx", line 263, in rasterio._base.DatasetBase.__init__
rasterio.errors.RasterioIOError: C:/Users/ADMINI~1/AppData/Local/Temp/tmp6ee21lfj/1710382296197.tif: No such file or directory

用超图自带的数据可以正常训练使用,用自己的影像和矢量面训练报错,影像是3波段的

1个回答

您好,您那边的影像和矢量面数据能否提供呢?可私发我云盘链接
9,197EXP 2024年03月14日

影像文件太大了提供不了可以给截图

影像数据量有多大呢?看下您的C盘空间还有多大?将您的数据裁一小部分出来做分析看下是否报错
三十几个G,才一小部分可以正常使用,C盘空间也有二十多个G,为啥大的不可以呢
C盘空间不足导致的,目前有两个解决办法:1、清理C盘空间,留出足够的空间进行分析 2、将影像裁剪一块区域进行分析。
我换一台空间大的电脑可以了,谢谢

还有东西请教一下,有没有解释这些模型算法区别的文档

算法的区别文档目前还没有,这些算法都是网上公开的,可以直接搜索查看对应的区别
...