avod icon indicating copy to clipboard operation
avod copied to clipboard

run_inference problem

Open BigRayLee opened this issue 6 years ago • 13 comments

Hello,when I run inference on test dataset. And I tried to generate my own plane file. The parameters look like 0.0119063 -0.999904 0.00707348 1.63311. And the problem occurred when inference Step 120000: 276 / 7518, Inference on sample 000275. File "/home/bit201/lr_avod/avod-ssd-master/avod/core/bev_generators/bev_slices.py", line 94, in generate_bev height_map = np.zeros((voxel_grid_2d.num_divisions[0], UnboundLocalError: local variable 'voxel_grid_2d' referenced before assignment And I think it might be the plane parameters problem. So I changed all the parameters to 0.0e+00 -1.0e+00 0.0e+00 1.65e+00. But the problem still occurred in Step 120000: 5233 / 7518, Inference on sample 005232. So I want to ask what is the reason for this? And how to solve it?

BigRayLee avatar Apr 27 '19 01:04 BigRayLee

Hello,when I run inference on test dataset. And I tried to generate my own plane file. The parameters look like 0.0119063 -0.999904 0.00707348 1.63311. And the problem occurred when inference Step 120000: 276 / 7518, Inference on sample 000275. File "/home/bit201/lr_avod/avod-ssd-master/avod/core/bev_generators/bev_slices.py", line 94, in generate_bev height_map = np.zeros((voxel_grid_2d.num_divisions[0], UnboundLocalError: local variable 'voxel_grid_2d' referenced before assignment And I think it might be the plane parameters problem. So I changed all the parameters to 0.0e+00 -1.0e+00 0.0e+00 1.65e+00. But the problem still occurred in Step 120000: 5233 / 7518, Inference on sample 005232. So I want to ask what is the reason for this? And how to solve it?

hello, how to run your test dataset, it need labels folder? I wan to konw your structure of test dataset , it similar to training data as readme said?

yinhai86924 avatar Oct 10 '19 05:10 yinhai86924

helle, have you solved this problem yet? I also encountered this problem, thank you

zhaotudou avatar May 21 '20 09:05 zhaotudou

helle, have you solved this problem yet? I also encountered this problem, thank you

I don't solve this problem, but I changed the computer, this problem will not occur in some situations.

BigRayLee avatar May 21 '20 09:05 BigRayLee

Hello,when I run inference on test dataset. And I tried to generate my own plane file. The parameters look like 0.0119063 -0.999904 0.00707348 1.63311. And the problem occurred when inference Step 120000: 276 / 7518, Inference on sample 000275. File "/home/bit201/lr_avod/avod-ssd-master/avod/core/bev_generators/bev_slices.py", line 94, in generate_bev height_map = np.zeros((voxel_grid_2d.num_divisions[0], UnboundLocalError: local variable 'voxel_grid_2d' referenced before assignment And I think it might be the plane parameters problem. So I changed all the parameters to 0.0e+00 -1.0e+00 0.0e+00 1.65e+00. But the problem still occurred in Step 120000: 5233 / 7518, Inference on sample 005232. So I want to ask what is the reason for this? And how to solve it?

hello, how to run your test dataset, it need labels folder? I wan to konw your structure of test dataset , it similar to training data as readme said?

sorry for late reply, it doesn't need the label folder, the data structure is similar to the training data.

BigRayLee avatar May 21 '20 09:05 BigRayLee

Thank you for your reply. It's very exciting to get your reply soon.

------------------ 原始邮件 ------------------ 发件人: "BigRayLee"<[email protected]>; 发送时间: 2020年5月21日(星期四) 下午5:28 收件人: "kujason/avod"<[email protected]>; 抄送: "甜土豆"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [kujason/avod] run_inference problem (#143)

I don't solve this problem, but I changed the computer, this problem will not occur in some situations.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

zhaotudou avatar May 21 '20 09:05 zhaotudou

I believe this is the issue when the bev_slices are generating slice points <=1. In that case, the initialization of voxel_grid2d, which is happening inside the if condition is getting skipped and hence when accessed outside the if condition, is throwing the error.

I am currently struggling with the same issue, trying to figure out why there are no slice points being created, I am running inference on Kitti but in the camera space.

Pari-singh avatar Jul 11 '20 23:07 Pari-singh

@Pari-singh Did you solve this issue?

kkk324 avatar Nov 19 '20 03:11 kkk324

did anyone of you solve this issue? I am facing the same problem. any help is appreciated.

bm-93 avatar Apr 30 '21 20:04 bm-93

Sorry,did anyone of you solve this issue? Thank you for your reply.

qiaoli96 avatar Mar 11 '22 17:03 qiaoli96

您好,当我在测试数据集上运行推理时。我试图生成我自己的平面文件。参数类似于 。并且当推理步骤120000:276 / 7518,对样本000275进行推理时出现问题。 我认为这可能是平面参数问题。所以我把所有的参数都改成了.但问题仍然发生在 .所以我想问一下,这是什么原因?如何解决它?0.0119063 -0.999904 0.00707348 1.63311``File "/home/bit201/lr_avod/avod-ssd-master/avod/core/bev_generators/bev_slices.py", line 94, in generate_bev height_map = np.zeros((voxel_grid_2d.num_divisions[0], UnboundLocalError: local variable 'voxel_grid_2d' referenced before assignment ``0.0e+00 -1.0e+00 0.0e+00 1.65e+00``Step 120000: 5233 / 7518, Inference on sample 005232

Hello, I also encountered this problem, how did you solve it? Can you share your method of requesting planes data?

duuxu avatar Aug 23 '22 12:08 duuxu

我已收到您的邮件,谢谢!--李悄(^_^)

qiaoli96 avatar Aug 23 '22 12:08 qiaoli96

Hello, did anyone solve the issue.

snehahegdek avatar May 06 '24 04:05 snehahegdek

我已收到您的邮件,谢谢!--李悄(^_^)

qiaoli96 avatar May 06 '24 04:05 qiaoli96