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
AttributeError: type object 'GraphKeys' has no attribute 'REGULARIZATION_LOSSES' #37
Comments
This sounds strange. My tensorflow 1.2 Version has the attribute As a workaround you can replace
|
Thanks for your reply! 2017-07-21 20:08:07.805898: W tensorflow/core/framework/op_kernel.cc:1158] Resource exhausted: OOM when allocating tensor with shape[1,4096,13,15] Caused by op u'content_vgg/fc6/Conv2D', defined at: ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[1,4096,13,15] It seems like an out of memory error. I am a new to tensorflow. How could I solve it? |
Use a GPU with more Memory. Or reduce batch size or reduce size or input image or do computation on cpu. |
Hi!
I got this error.
npy file loaded
Layer name: conv1_1
Layer shape: (3, 3, 3, 64)
Traceback (most recent call last):
File "test_fcn32_vgg.py", line 24, in
vgg_fcn.build(batch_images, debug=True)
File "/home/sheldon/tensorflow-fcn-master/fcn32_vgg.py", line 74, in build
self.conv1_1 = self._conv_layer(bgr, "conv1_1")
File "/home/sheldon/tensorflow-fcn-master/fcn32_vgg.py", line 135, in _conv_layer
filt = self.get_conv_filter(name)
File "/home/sheldon/tensorflow-fcn-master/fcn32_vgg.py", line 259, in get_conv_filter
tf.add_to_collection(tf.GraphKeys.REGULARIZATION_LOSSES,
AttributeError: type object 'GraphKeys' has no attribute 'REGULARIZATION_LOSSES'
python 2.7 tensorflow1.2
Could you give me some suggestions?
The text was updated successfully, but these errors were encountered: