leetenki / YOLOv2

YOLOv2のchainerの再現実装です(darknetのchainerローダと、完全なchainer上での訓練コードを含みます)
MIT License
338 stars 88 forks source link

Error in yolov2.py AttributeError #15

Open Siii92 opened 7 years ago

Siii92 commented 7 years ago

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 commented 7 years ago

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