j96w / DenseFusion

"DenseFusion: 6D Object Pose Estimation by Iterative Dense Fusion" code repository
https://sites.google.com/view/densefusion
MIT License
1.09k stars 301 forks source link

Fail to run Evaluation on YCB_Video Dataset #15

Closed hoangcuongbk80 closed 5 years ago

hoangcuongbk80 commented 5 years ago

Hi,

I got the error when run ./experiments/scripts/eval_ycb.sh as the following:

1

Thanks!

j96w commented 5 years ago

You get this error because you have deleted this part of code: https://github.com/j96w/DenseFusion/blob/813940ae2ae33fa0ccd65e778037e5882d3ad282/tools/eval_ycb.py#L234-L237 This exception happens when the object detector totally lost the target object in the scene, so no pixels from the segmentation of this object is found. When this happens, a vector with all zeros will be returned and be regarded as a failure case.

Taeuk-Jang commented 5 years ago

I got the same error even I didn't modify any codes

j96w commented 5 years ago

Hi @Taeuk-Jang, could you show me more info about this error, for example, which line of code in eval_ycb.py cause it? I didn't have this problem myself.

Taeuk-Jang commented 5 years ago

Hi, @j96w, after downloading all the data, when I do sh ./experiments/scripts/eval_ycb.sh it shows as it up as hoangcuongbk80 captured and it stops running

Taeuk-Jang commented 5 years ago

I actually have problem with downloading trained checkpoint with download.sh so I manually downloaded through the link and get the pose_model, and run the eval_ycb.sh it ends up like above, with linemod, it says Segmentation fault (core dumped) after No.7192 Pass! Distance: 0.010582346033120622

MyoungHaSong commented 5 years ago

This error occurs when there is an empty matrix.

This problem can be solved by an exception of an empty matrix.

ZJU-PLP commented 5 years ago

Hi, when I use YCB_Video_toolbox to run the matlab code "YCB_Video_toolbox/evaluateposes keyframe.m", I meet the problem! Who can help me ? Thanks a lot in advance!

Error using load
Unable to read file 'Densefusion_iterative_result/0026.mat'. No such file or directory.

Error in evaluate_poses_keyframe (line 50)
    result_my = load(filename);
MaxChanger commented 5 years ago

@j96w @hoangcuongbk80 I also meet this problem, in python3.6 pytorch1.0, and I find a solution in stackoverflow, but now i can't find the link, the reason maybe the version of numpy.

After I modify the version of numpy from 1.16 to 1.10.1, this mistake was resolved.

But I don't think it's the perfect solution to this problem, If you find the real reason for this problem, please let me know.

hoangcuongbk80 commented 5 years ago

@MaxChanger I made it work, but do not remember how exactly I did it. You can try what I fixed from here: https://github.com/hoangcuongbk80/Object-RPE/tree/master/DenseFusion

MaxChanger commented 5 years ago

@hoangcuongbk80 Thank you very much, I will try it later !