j96w / DenseFusion

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

Evaluation on LineMOD Dataset: RuntimeError: Legacy autograd function:... #211

Closed ZhouTao415 closed 2 years ago

ZhouTao415 commented 2 years ago

Hi,, i try to evaluate on LineMOD Dataset, and use this comand "./experiments/scripts/eval_linemod.sh". When I run the code, it can still be processed at first, but the following error occurs when processing No.7192. I have tried various solutions in the issue, to no avail. But i evaluate on YCB_Video Dataset,and use comand "./experiments/scripts/eval_ycb.sh",that is avail. And Training Process is also avail. Any idea of what is wrong with my iplementation? Thanks.

My platform is Ubuntu 22.04 GPU: 3070ti python 3.6 torch 1.7.1+cu110 torchaudio 0.7.2 torchvision 0.8.2+cu110

ZhouTao415 commented 2 years ago

I have solved this problem. For me, the problem appeared in tools/eval_linemod.py line 126 "inds = knn(target.unsqueeze(0), pred.unsqueeze(0))", changed to “inds = KNearestNeighbor.apply(target.unsqueeze (0), pred.unsqueeze(0))“. It works .

ZhuangTingT commented 1 year ago

I have solved this problem. For me, the problem appeared in tools/eval_linemod.py line 126 "inds = knn(target.unsqueeze(0), pred.unsqueeze(0))", changed to “inds = KNearestNeighbor.apply(target.unsqueeze (0), pred.unsqueeze(0))“. It works .

hello, I have changed to “inds = KNearestNeighbor.apply(target.unsqueeze (0), pred.unsqueeze(0))“, but I met the problem "no attribute 'k'", do you have any idea to solve it? thanks!

Lance-123 commented 1 year ago

I have solved this problem. For me, the problem appeared in tools/eval_linemod.py line 126 "inds = knn(target.unsqueeze(0), pred.unsqueeze(0))", changed to “inds = KNearestNeighbor.apply(target.unsqueeze (0), pred.unsqueeze(0))“. It works .

hello, I have changed to “inds = KNearestNeighbor.apply(target.unsqueeze (0), pred.unsqueeze(0))“, but I met the problem "no attribute 'k'", do you have any idea to solve it? thanks!

Did you solve it, I have the same problem

Harrydsk commented 8 months ago

I have solved this problem. For me, the problem appeared in tools/eval_linemod.py line 126 "inds = knn(target.unsqueeze(0), pred.unsqueeze(0))", changed to “inds = KNearestNeighbor.apply(target.unsqueeze (0), pred.unsqueeze(0))“. It works .

hello, I have changed to “inds = KNearestNeighbor.apply(target.unsqueeze (0), pred.unsqueeze(0))“, but I met the problem "no attribute 'k'", do you have any idea to solve it? thanks!

Did you solve it, I have the same problem

did u solve it ,my friend