PaddlePaddle / PaddleRS

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

导出后的模型报错The 'shape' in ReshapeOp is invalid #166

Closed kidcad1412 closed 9 months ago

kidcad1412 commented 11 months ago

Thanks for your issue. To help us better solve the issue, please provide the following information:

  1. PaddleRS version: (please specify the branch as well,e.g. PaddleRS release/1.0)
  2. PaddlePaddle version: (e.g. PaddlePaddle 2.3.0)
  3. Operation system: (e.g. Linux/Windows/MacOS)
  4. Python version: (e.g. Python3.7/8)
  5. CUDA/cuDNN version: (e.g. CUDA10.2/cuDNN 7.6.5)
  6. Additional context: (add any other context about the problem)

欢迎您的提问。辛苦您提供以下信息,以方便我们快速定位和解决问题:

  1. PaddleRS版本:PaddleRS dev/1.0
  2. PaddlePaddle版本:PaddlePaddle 2.4.0
  3. 操作系统信息:Linux
  4. Python版本号:Python3.9)
  5. CUDA/cuDNN版本:如CUDA11.4
  6. 其他内容: (增加其他与问题相关的内容):

InvalidArgumentError: The 'shape' in ReshapeOp is invalid. The input tensor X'size must be equal to the capacity of 'shape'. But received X's shape = [1, 4, 256, 256], X's size = 262144, 'shape' is [1, 4, 1, 4096], the capacity of 'shape' is 16384. [Hint: Expected capacity == in_size, but received capacity:16384 != in_size:262144.] (at /paddle/paddle/fluid/operators/reshape_op.cc:230) [operator < reshape2 > error]

github-actions[bot] commented 9 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.