AttributeError: 'vgg16' object has no attribute 'drop_prob'

#1 · open · 0 comments

View on GitHub ↗

2501231120

Hello, the author, I used your program after the following error occurred, I would like to ask how to solve this problem. Traceback (most recent call last): File "bcnn.py", line 293, in <module> vgg = vgg16(imgs, 'vgg16_weights.npz', sess, isFineTune, drop_prob) File "bcnn.py", line 48, in __init__ self.fc_layers() File "bcnn.py", line 251, in fc_layers tf.contrib.layers.dropout(fcw,self.drop_prob)), AttributeError: 'vgg16' object has no attribute 'drop_prob'

Comments