jdyjjj / All-in-One-Gait

TrackGait is a sub project of OpenGait. Implemented a gait recognition system.
74 stars 12 forks source link

how can solve this endless error? #3

Closed whatseob closed 1 year ago

whatseob commented 1 year ago

hi, i'm trying to run demo. but there's have some problems. when numpy version is higher 1.20. then error message is below :

Traceback (most recent call last): File "demo/libs/main.py", line 6, in from track import * File "/mnt/ssd2T_1/yoseob/All-in-One-Gait/OpenGait/demo/libs/track.py", line 15, in from tracker.byte_tracker import BYTETracker File "/mnt/ssd2T_1/yoseob/All-in-One-Gait/OpenGait/demo/libs/tracker/byte_tracker.py", line 10, in from tracker import matching File "/mnt/ssd2T_1/yoseob/All-in-One-Gait/OpenGait/demo/libs/tracker/matching.py", line 7, in from cython_bbox import bbox_overlaps as bbox_ious File "src/cython_bbox.pyx", line 12, in init cython_bbox File "/mnt/ssd2T_1/yoseob/All-in-One-Gait/OpenGait/env_gait2/lib/python3.8/site-packages/numpy/init.py", line 305, in getattr raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

when numpy version is lower 1.20. then error message is below :

Traceback (most recent call last): File "demo/libs/main.py", line 6, in from track import * File "/mnt/ssd2T_1/yoseob/All-in-One-Gait/OpenGait/demo/libs/track.py", line 15, in from tracker.byte_tracker import BYTETracker File "/mnt/ssd2T_1/yoseob/All-in-One-Gait/OpenGait/demo/libs/tracker/byte_tracker.py", line 10, in from tracker import matching File "/mnt/ssd2T_1/yoseob/All-in-One-Gait/OpenGait/demo/libs/tracker/matching.py", line 4, in import lap File "/mnt/ssd2T_1/yoseob/All-in-One-Gait/OpenGait/env_gait2/lib/python3.8/site-packages/lap/init.py", line 25, in from ._lapjv import ( File "init.pxd", line 199, in init lap._lapjv ValueError: numpy.ndarray has the wrong size, try recompiling. Expected 80, got 96

how can i run this demo? please help me..

jdyjjj commented 1 year ago

I haven't encountered your situation, but after reading your error message, I feel like it may be caused by cython bbox, you can try installing Cython and cython bbox, let's see if it can solve the problem.

whatseob commented 1 year ago

now it works. thanks!