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

How can I make changes to make it work for only 5 classes. #3

Open
gangooteli opened this issue Dec 13, 2017 · 0 comments
Open

How can I make changes to make it work for only 5 classes. #3

gangooteli opened this issue Dec 13, 2017 · 0 comments

Comments

@gangooteli
Copy link

I need to do detection for only 5 classes. How to work on that. I tried to make changes in yolov2-coco.meta file and reduce it to 5 classes. But It is giving me error.

Forwarding the image input.
Cost time of run = 1.40356898308s.
Traceback (most recent call last):
File "demo_yolo_v2.py", line 203, in
demo_image()
File "demo_yolo_v2.py", line 157, in demo_image
results = yolo.detect_object(im)
File "demo_yolo_v2.py", line 143, in detect_object
result = self.postprocess(out[0])
File "demo_yolo_v2.py", line 124, in postprocess
result = box.box_constructor(meta,net_out)
File "/home/nikhil/Documents/yolo/yolov2-tensorflow-master/utils/box.py", line 68, in box_constructor
class_probs = np.ascontiguousarray(Classes).reshape([HWB, C])
ValueError: cannot reshape array of size 144400 into shape (1805,5)

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