python - ValueError:无法将大小为 12400 的数组重塑为形状 (1,4)
问题描述
我正在从 2d 图像构建 3d 模型,我尝试了很多但无法修复此错误。
def reprojection_loss_function(opt_variables, points_2d, num_pts):
P = opt_variables[0:12].reshape(3,4)
point_3d = opt_variables[12:].reshape((len(points_2d[0]),4))
解决方案
推荐阅读
- android - 我们如何在 firebase(android、kotlin)中记录错误?
- division - LC-3 中的除法运算,结果是实数(不是整数)
- java - 如何重复输入直到在java中获得正确的语句?
- symfony - Symfony - 令牌存储返回匿名
- airflow - 如何调用 dag 任务?
- autoencoder - lstm 自动编码器不使用潜在空间的全维度进行降维
- php-7.4 - 如何使用 Symfony 邮件程序向群组发送邮件?
- linux - 使用文件重命名将文件从文件夹复制到一个文件夹
- javascript - 在 Google Tag Manager 中使用 javascript map 函数获取正确的 json 输出
- java - 类加载时 log4j2 未加载 JTextAreaAppender