image-processing - MTCNN 没有为 bbox 提供正确的输出
问题描述
嗨,我一直在运行我自己的图像数据集的链接上显示的这个笔记本教程。但是,当我运行这段代码时,我的 bbox 的形状是 (0,5) 而不是 (1,5)。对此有什么解释,我该如何解决?
#image = cv2.imread('test/6.jpg')
image = cv2.imread('train_data/train/class1/CB6320R.jpg')
input = np.copy(image)
bboxes = create_mtcnn_net(input, (50, 15), device, p_model_path='MTCNN/weights/pnet_Weights',
o_model_path='MTCNN/weights/onet_Weights')
bboxes.shape
output: (0,5)
解决方案
推荐阅读
- android - Android 文本注释 java.lang.ClassCastException:java.lang.String 无法转换为 android.text.SpannedString
- graph - 连接随机点以形成网格状网络
- java - 如何在不使用 pojo 类的情况下在 spring boot 中创建 mongodb 集合?
- java - Java - 如何将时区转换为不同的格式?
- python - 计算每个固定时间对刺激的反应平均值
- java - traceId 和 spanId 在整个记录器中都相同
- postgresql - 尝试连接到任何 Postgres 13 实例时出现“错误:数据库 'postgres' 的连接太多”
- go - 验证用户是否已使用 MSAL/Azure AD 登录并向他们提供我的单独 API 的令牌?
- authorization - 我可以在 NATS.io 中实现自定义授权吗?
- cmake - CMake 找不到 GMP