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波段的