I am trying to replicate results from https://arxiv.org/abs/1602.02697, but using images size 224x224x3 following the black-box tutorial https://github.com/tensorflow/cleverhans/blob/master/cleverhans_tutorials/mnist_blackbox.py
However, I am hitting a memory-consumption error (pasted below). It seems to me that jacobian dataset augmentation could be the source issue: https://github.com/tensorflow/cleverhans/blob/master/cleverhans/utils_tf.py#L657
Yet, I don't know how to check that.
I am running the code on 8GB GPU.
Could it be that this method can't work on bigger images? How can I fix this? What's the complexity of the method?
...
2019-02-07 18:21:32.984709: I tensorflow/core/common_runtime/bfc_allocator.cc:645] Sum Total of in-use chunks: 7.31GiB
2019-02-07 18:21:32.984715: I tensorflow/core/common_runtime/bfc_allocator.cc:647] Stats:
Limit: 7860224000
InUse: 7848987648
MaxInUse: 7848987648
NumAllocs: 10041921
MaxAllocSize: 2424832000
2019-02-07 18:21:32.984831: W tensorflow/core/common_runtime/bfc_allocator.cc:271] ****************************************************************************************************
2019-02-07 18:21:32.984849: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at transpose_op.cc:199 : Resource exhausted: OOM when allocating tensor with shape[4,256,56,56] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc