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

YOLO_DEEP_SORT: error while running inference #114

Open
neso613 opened this issue May 9, 2022 · 0 comments
Open

YOLO_DEEP_SORT: error while running inference #114

neso613 opened this issue May 9, 2022 · 0 comments

Comments

@neso613
Copy link

neso613 commented May 9, 2022

Hi
I am getting error while running commands -
python main.py -c person -i testvideo.mp4

./model_data/yolo.h5 model, anchors, and classes loaded. Traceback (most recent call last): File "main.py", line 172, in <module> main(YOLO()) File "/home/cogknit/my_stuff/mahesh_projects/Object-Detection-and-Tracking/OneStage/yolo/deep_sort_yolov3/yolo.py", line 50, in __init__ self.boxes, self.scores, self.classes = self.generate() File "/home/cogknit/my_stuff/mahesh_projects/Object-Detection-and-Tracking/OneStage/yolo/deep_sort_yolov3/yolo.py", line 90, in generate score_threshold=self.score, iou_threshold=self.iou) File "/home/cogknit/my_stuff/mahesh_projects/Object-Detection-and-Tracking/OneStage/yolo/deep_sort_yolov3/yolo3/model.py", line 170, in yolo_eval anchors[anchor_mask[l]], num_classes, input_shape, image_shape) File "/home/cogknit/my_stuff/mahesh_projects/Object-Detection-and-Tracking/OneStage/yolo/deep_sort_yolov3/yolo3/model.py", line 148, in yolo_boxes_and_scores anchors, num_classes, input_shape) File "/home/cogknit/my_stuff/mahesh_projects/Object-Detection-and-Tracking/OneStage/yolo/deep_sort_yolov3/yolo3/model.py", line 113, in yolo_head box_xy = (box_xy + grid) / K.cast(grid_shape[::-1], K.dtype(feats)) File "/home/cogknit/anaconda3/envs/tf2.6/lib/python3.7/site-packages/tensorflow/python/util/traceback_utils.py", line 153, in error_handler raise e.with_traceback(filtered_tb) from None File "/home/cogknit/anaconda3/envs/tf2.6/lib/python3.7/site-packages/keras/layers/core/tf_op_layer.py", line 534, in handle return SlicingOpLambda(self.op)(*args, **kwargs) File "/home/cogknit/anaconda3/envs/tf2.6/lib/python3.7/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler raise e.with_traceback(filtered_tb) from None ValueError: Subshape must have computed start >= end since stride is negative, but is 0 and 2 (computed from start 0 and end 9223372036854775807 over shape with rank 2 and stride-1)

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

1 participant