Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code logic error #25

Open
gneworld opened this issue May 28, 2020 · 3 comments
Open

code logic error #25

gneworld opened this issue May 28, 2020 · 3 comments

Comments

@gneworld
Copy link

hi,
I found an error in generate_result function in test.py file, that is " if (np.sum(feature[i]**2))>=0:", this condition will always be true. so it is redundant conditional statement?

lane_feature = []
x = []
y = []
for i in range(len(grid)):
if (np.sum(feature[i]**2))>=0:
point_x = int((offset[i][0]+grid[i][0])*p.resize_ratio)
point_y = int((offset[i][1]+grid[i][1])*p.resize_ratio)
.............

@gneworld
Copy link
Author

@koyeongmin hello, could you give an explanation about this? thanks

@koyeongmin
Copy link
Owner

Oh! It looks unnecessary condition. I think I forgot to delete the condition while experimenting with various conditions.

@gneworld
Copy link
Author

@koyeongmin thanks much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants