You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was training on a new dataset which is based on the format of VOC2007, and got 5000 iterations into training when there was a crash. It looks like something happened while trying to take a snapshot of the weights of the neural net. Any ideas on how to fix this?
Here's the error:
Traceback (most recent call last):
File "./tools/train_net.py", line 95, in
max_iters=args.max_iters)
File "Faster-RCNN_TF-master/tools/../lib/fast_rcnn/train.py", line 209, in train_net
sw.train_model(sess, max_iters)
File "Faster-RCNN_TF-master/tools/../lib/fast_rcnn/train.py", line 166, in train_model
self.snapshot(sess, iter)
File "Faster-RCNN_TF-master/tools/../lib/fast_rcnn/train.py", line 60, in snapshot
sess.run(weights.assign(orig_0 * np.tile(self.bbox_stds, (weights_shape[0],1))))
ValueError: operands could not be broadcast together with shapes (4096,84) (4096,32)
The text was updated successfully, but these errors were encountered:
Fixed it, turns out there's a variable for the number of classes inside lib/networks/VGGNet_train.py named 'n_classes'. This was set to 21, despite the fact that my new dataset only has 8 classes
I was training on a new dataset which is based on the format of VOC2007, and got 5000 iterations into training when there was a crash. It looks like something happened while trying to take a snapshot of the weights of the neural net. Any ideas on how to fix this?
Here's the error:
Traceback (most recent call last):
File "./tools/train_net.py", line 95, in
max_iters=args.max_iters)
File "Faster-RCNN_TF-master/tools/../lib/fast_rcnn/train.py", line 209, in train_net
sw.train_model(sess, max_iters)
File "Faster-RCNN_TF-master/tools/../lib/fast_rcnn/train.py", line 166, in train_model
self.snapshot(sess, iter)
File "Faster-RCNN_TF-master/tools/../lib/fast_rcnn/train.py", line 60, in snapshot
sess.run(weights.assign(orig_0 * np.tile(self.bbox_stds, (weights_shape[0],1))))
ValueError: operands could not be broadcast together with shapes (4096,84) (4096,32)
The text was updated successfully, but these errors were encountered: