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

Error in yolov2.py AttributeError #15

Open
Siii92 opened this issue Jun 1, 2017 · 1 comment
Open

Error in yolov2.py AttributeError #15

Siii92 opened this issue Jun 1, 2017 · 1 comment

Comments

@Siii92
Copy link

Siii92 commented Jun 1, 2017

I encountered this error in yolov2.py
Could you tell me how to fix it.

python yolov2_train.py

loading image generator...
item_files = ...
loading initial model...
start training
Traceback (most recent call last):
File "yolov2_train.py", line 82, in
loss = model(x, t)
File "/home/dl-box/YOLOv2/yolov2.py", line 168, in call
x_shift = Variable(np.broadcast_to(np.arange(grid_w), x.shape[1:]))
AttributeError: 'module' object has no attribute 'broadcast_to'

@Siii92
Copy link
Author

Siii92 commented Jun 6, 2017

I resolve this problem. I have used numpy ver1.08, but upgrade ver1.12.

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