SeanChenxy / HandMesh

MIT License
344 stars 68 forks source link

mask_predict置信度太低 #50

Closed lvZic closed 2 years ago

lvZic commented 2 years ago

cmr-pg-FreiHAND,在真实场景下测试,mask_pred 的值都是0 mask_pred = (mask_pred[0] > 0.3).cpu().numpy().astype(np.uint8)

这里0.3换为0.1 ,mask_pred依然都是0,奇怪的是手指坐标值都有,是哪里的问题呢?

SeanChenxy commented 2 years ago

根据这些信息难以找到问题,建议debug一下。cmr-g对真实场景的繁华性能好一些。

lvZic commented 2 years ago

根据这些信息难以找到问题,建议debug一下。cmr-g对真实场景的繁华性能好一些。

直接运行./cmr/scripts/demo_cmr.sh FreiHAND的测试图片结果也是poly = None

3891_plot 3871_plot 3790_plot

lvZic commented 2 years ago

the reason is "sort(key=cnt_area, reverse=True)" need list object while contours is tuple. Using sorted instead of sort sovled it.