Digital-Image-Processing-Project icon indicating copy to clipboard operation
Digital-Image-Processing-Project copied to clipboard

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

Open 2501231120 opened this issue 6 years ago • 0 comments

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 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'

2501231120 avatar Apr 19 '19 02:04 2501231120