PaddlePaddle / PaddleRS

Awesome Remote Sensing Toolkit based on PaddlePaddle.
Apache License 2.0
365 stars 88 forks source link

我想请问一下,match.py文件对tif的大小输入有要求吗?以下是不同的报错信息 #158

Closed HZWXW371 closed 10 months ago

HZWXW371 commented 1 year ago

ERROR 4: Attempt to create new tiff file `E:\hz' failed: Permission denied Traceback (most recent call last): File "match.py", line 97, in match(args.image1_path, args.image2_path, args.save_path, args.image1_bands, File "D:\GIS\PaddleRS-develop\tools\utils\timer.py", line 23, in wrapper result = func(*args, **kwargs) File "match.py", line 80, in match save_geotiff(im2_arr_t, save_path, im1_ras.proj, im1_ras.geot, File "D:\GIS\PaddleRS-develop\tools\utils\raster.py", line 252, in save_geotiff dst_ds.SetGeoTransform(geotf) AttributeError: 'NoneType' object has no attribute 'SetGeoTransform'

2023-06-16 13:31:18,977-WARNING: post-quant-hpo is not support in system other than linux Traceback (most recent call last): File "match.py", line 97, in match(args.image1_path, args.image2_path, args.save_path, args.image1_bands, File "D:\GIS\PaddleRS-develop\tools\utils\timer.py", line 23, in wrapper result = func(*args, **kwargs) File "match.py", line 77, in match H = _calcu_tf(im1, im2) File "match.py", line 36, in _calcu_tf mathces = bf.knnMatch(des2, des1, k=2) cv2.error: OpenCV(4.3.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-dfuyjxl6\opencv\modules\features2d\src\matchers.cpp:855: error: (-215:Assertion failed) trainDescCollection[iIdx].rows < IMGIDX_ONE in function 'cv::BFMatcher::knnMatchImpl'

Bobholamovic commented 1 year ago

你好,从报错信息上来看,请注意以下几个问题:

  1. 请确认当前用户是否具有足够的权限在E:\hz目录创建文件,如果没有的话,可能需要修改输出目录;
  2. 看起来图像尺寸过大了,超过了PaddleRS使用的cv::BFMatcher::knnMatchImpl能够处理的范围,请考虑对图像进行切块等预处理。
github-actions[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.