You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CollectLane and CollectRNNLanes classes in lane_formating.py are responsible for computing the ground truth information for the CondLaneNet. As part of this process, the clamp_line function is used to determine the "valid ground truth points". However, in some cases, this function returns incorrect information.
Specifically, when the clamp_line function hits the line elif isinstance(I, MultiLineString):, it raises an exception because MultiLineString is not imported. As a result, the execution continues in the except branch, and the function returns None, which leads to incorrect ground truth.
Code Example
defclamp_line(line, box, min_length=0):
left, top, right, bottom=boxloss_box=Polygon([[left, top], [right, top], [right, bottom],
[left, bottom]])
line_coords=np.array(line).reshape((-1, 2))
ifline_coords.shape[0] <2:
returnNonetry:
line_string=LineString(line_coords)
I=line_string.intersection(loss_box)
ifI.is_empty:
returnNoneifI.length<min_length:
returnNoneifisinstance(I, LineString):
pts=list(I.coords)
returnptselifisinstance(I, MultiLineString): # <------ exception is raised here because MultiLineString is not importedpts= []
Istrings=list(I)
forIstringinIstrings:
pts+=list(Istring.coords)
returnptsexcept:
returnNone
Impact
This issue can have significant impact on the performance of the model. On my dataset (which is different from the datasets used in the paper), this has led to significantly different results for F1, precision, and recall.
Around 7-8% of all lanes in my dataset where affected by this problem.
The text was updated successfully, but these errors were encountered:
Problem
The
CollectLane
andCollectRNNLanes
classes inlane_formating.py
are responsible for computing the ground truth information for the CondLaneNet. As part of this process, theclamp_line
function is used to determine the "valid ground truth points". However, in some cases, this function returns incorrect information.Specifically, when the
clamp_line
function hits the lineelif isinstance(I, MultiLineString):
, it raises an exception becauseMultiLineString
is not imported. As a result, the execution continues in theexcept
branch, and the function returnsNone
, which leads to incorrect ground truth.Code Example
Impact
This issue can have significant impact on the performance of the model. On my dataset (which is different from the datasets used in the paper), this has led to significantly different results for F1, precision, and recall.
Around 7-8% of all lanes in my dataset where affected by this problem.
The text was updated successfully, but these errors were encountered: