Skip to content

Commit

Permalink
Merge pull request #90 from DevLinyan/main
Browse files Browse the repository at this point in the history
minor fix
  • Loading branch information
ChonghaoSima authored Apr 28, 2024
2 parents 8e4fc64 + 84ce921 commit e0e4803
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion challenge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ Please refresh the page, click `Login with Hugging Face` at the bottom of the le
### If I encounter a reshape error, what should I do?
You should first refer to this [location](https://github.com/OpenDriveLab/DriveLM/blob/main/challenge/evaluation.py#L90). Most of the reshape errors occur here.
You should first refer to this [location](https://github.com/OpenDriveLab/DriveLM/blob/main/challenge/evaluation.py#L89). Most of the reshape errors occur here.
### Finally, which dataset do we submit to the competition?
Expand Down
2 changes: 2 additions & 0 deletions challenge/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def match_result(self, answer, GT):
answer_nums = re.findall(r'\d+\.\d+', answer)
GT_nums = re.findall(r'\d+\.\d+', GT)
# transform string into float
if len(answer_nums) % 2 != 0:
answer_nums = answer_nums[:-1]
answer_nums = np.array([list(map(float, x.split()))[0] for x in answer_nums]).reshape(-1, 2)
GT_nums = np.array([list(map(float, x.split()))[0] for x in GT_nums]).reshape(-1, 2)
length = len(GT_nums)
Expand Down

0 comments on commit e0e4803

Please sign in to comment.