commaai / commaai/research

TypeError: slice indices must be integers or None or have an __index__ method

Open
#52 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

when i run " ./view_steering_model.py ./outputs/steering_model/steering_angle.json", it prompt me this error message:
Traceback (most recent call last):
File "./view_steering_model.py", line 120, in
draw_path_on(img, speed_ms, -angle_steers/10.0)
File "./view_steering_model.py", line 84, in draw_path_on
draw_path(img, path_x, path_y, color)
File "./view_steering_model.py", line 59, in draw_path
draw_pt(img, x, y, color)
File "./view_steering_model.py", line 55, in draw_pt
img[row-sz:row+sz, col-sz:col+sz] = color
TypeError: slice indices must be integers or None or have an __index__ method
How to solve this problem?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.