sam_road icon indicating copy to clipboard operation
sam_road copied to clipboard

error when running python inferencer.py

Open darld opened this issue 1 year ago • 2 comments

Traceback (most recent call last): File "/home/ubuntu/sam_road/inferencer.py", line 279, in pred_nodes, pred_edges, itsc_mask, road_mask = infer_one_img(net, img, config) ValueError: not enough values to unpack (expected 4, got 2)

darld avatar Jul 23 '24 02:07 darld

Hello, I don't know if your problem has been solved. I noticed that you can proceed by skipping the processing of AOI_4_Shanghai_1597. Perhaps there's something wrong with the data in this one?

Traceback (most recent call last): File "/home/ubuntu/sam_road/inferencer.py", line 279, in pred_nodes, pred_edges, itsc_mask, road_mask = infer_one_img(net, img, config) ValueError: not enough values to unpack (expected 4, got 2)

ZC-peng avatar Jul 25 '24 07:07 ZC-peng

Hi, @darld there was a bug in inferencer.py when no vertex is detected. I have fixed that and you shall no longer see this issue. @ZC-peng thank you for finding the offending sample - I have tested on this and confirm it fixes the issue.

htcr avatar Aug 08 '24 08:08 htcr