-
Notifications
You must be signed in to change notification settings - Fork 723
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
error when testing forward pass #29
Comments
Hi @Anikily , which is come from https://github.com/ayooshkathuria/YOLO_v3_tutorial_from_scratch/blob/master/cfg/yolov3.cfg os: macos |
thanks ,I have solved this problem, and I encountered another problem : |
HI @Anikily , So I think you might be right, one in GPU but the other in CPU.
Now it pass with exit code 0. But I still not sure where is a good place to put x = x.cuda() ... |
Hi @arashilen , thansks for your reply.I have solved this problem yesterday in a similar way to yours.And I did this step in util.py...in just ablove the line which reported the error. |
when I test forward pass ,I got such error:
Traceback (most recent call last):
File "darknet_debug.py", line 317, in
model = Darknet('cfg/yolov3.cfg')
File "darknet_debug.py", line 172, in init
self.net_info, self.module_list = create_modules(self.blocks)
File "darknet_debug.py", line 154, in create_modules
anchors = x["anchors"].split(",")
TypeError: string indices must be integers, not str
and I don't think the error originated from my code, because it was reported later on the code that I copied for GitHub.
os:ubontu16.04
The text was updated successfully, but these errors were encountered: