GeekAlexis / FastMOT

High-performance multiple object tracking based on YOLO, Deep SORT, and KLT 🚀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown attribute 'ravel' of type none

maldivien opened this issue · comments

Traceback (most recent call last):
File "app1.py", line 174, in
main()
File "app1.py", line 121, in main
mot.step(frame)
File "/home/hdc/V2/fastmot/mot.py", line 126, in step
self.tracker.track(frame)
File "/home/hdc/V2/fastmot/tracker.py", line 108, in track
self.compute_flow(frame)
File "/home/hdc/V2/fastmot/tracker.py", line 120, in compute_flow
self.flow_bboxes, self.homography = self.flow.predict(frame, active_tracks)
File "/home/hdc/V2/fastmot/flow.py", line 145, in predict
status = self._get_status(status, err, self.max_error)
File "/usr/local/lib/python3.6/dist-packages/numba/dispatcher.py", line 401, in _compile_for_args
error_rewrite(e, 'typing')
File "/usr/local/lib/python3.6/dist-packages/numba/dispatcher.py", line 344, in error_rewrite
reraise(type(e), e, None)
File "/usr/local/lib/python3.6/dist-packages/numba/six.py", line 668, in reraise
raise value.with_traceback(tb)
numba.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Unknown attribute 'ravel' of type none

File "fastmot/flow.py", line 286:
def get_status(status, err, max_err):
return status.ravel().astype(np.bool
) & (err.ravel() < max_err)
^

[1] During: typing of get attribute at /home/hdc/V2/fastmot/flow.py (286)

File "fastmot/flow.py", line 286:
def get_status(status, err, max_err):
return status.ravel().astype(np.bool
) & (err.ravel() < max_err)
^

I get the above error in random, it's not consistent. any ideas?

I don't see this error with --gui