Open ehsanpi opened 5 years ago
" Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2".
That error message is unrelated I think. It just means that, in order to get maximum speed when running in CPU, you must build Tensorflow yourself with AVX2 enabled. They are disabled by default so that the distributed binaries work in all machines (and some do not support AVX2)
As to not using GPU, I can think of two reasons for that: In the config.py file, is GPU_COUNT set to 1? If it is set to 0 it will not use it Do you have tensorflow-gpu installed? If you only have tensorflow it will run on CPU
Thanks 4sfaloth. It was great. I could install it properly.
In the config.py file, is GPU_COUNT set to 1? If it is set to 0 it will not use it
But here it says 1 for CPU https://github.com/matterport/Mask_RCNN/blob/master/mrcnn/config.py#L27
Correct me if I am missing something.
The code runs only on CPU. I guess the error arises due to the this message: " Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2". Can you kindly explain why?
BTW, I followed all instructions and requirements both in Conda and without. I successfully ran the cuda sample with GPU full usage.
OS: Windows 10 GPU: NVIDIA 1080 Cuda: 9.0 cuDNN: 7.4.2 Python: 3.6
The code runs only on CPU. I guess the error arises due to the this message: " Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2". Can you kindly explain why?
BTW, I followed all instructions and requirements both in Conda and without. I successfully ran the cuda sample with GPU full usage.
OS: Windows 10 GPU: NVIDIA 1080 Cuda: 9.0 cuDNN: 7.4.2 Python: 3.6
When you run pip3 install -r requirements.txt
, a cpu version of tensorflow is automatically installed. Uninstall it and reinstall a gpu version
Can you provide some suggestions on how to install the required GPU version correctly? I am having trouble install it. I am trying to install it inside a gpu tensorflow docker.
Can you provide some suggestions on how to install the required GPU version correctly? I am having trouble install it. I am trying to install it inside a gpu tensorflow docker.
pip uninstall tensorflow && pip install tensorflow-gpu
" Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2".
That error message is unrelated I think. It just means that, in order to get maximum speed when running in CPU, you must build Tensorflow yourself with AVX2 enabled. They are disabled by default so that the distributed binaries work in all machines (and some do not support AVX2)
As to not using GPU, I can think of two reasons for that: In the config.py file, is GPU_COUNT set to 1? If it is set to 0 it will not use it Do you have tensorflow-gpu installed? If you only have tensorflow it will run on CPU
I hev the same issue. But I already install tenorflow-gpu and set GPU_COUNT = 2. it still run on CPU, not on GPU. Could you help me?
Good moorning to you please, I have some problem. when I run Mask RCNN for crater dectection, I got this error:
[ 0.7614669 0.5845174 1.1143883 1.2913378 ]]]
2024-03-05 06:50:19.778224: W tensorflow/core/framework/op_kernel.cc:1753] OP_REQUIRES failed at strided_slice_op.cc:108 : Invalid argument: slice index 1 of dimension 0 out of bounds.
2024-03-05 06:50:19.783188: W tensorflow/core/framework/op_kernel.cc:1753] OP_REQUIRES failed at strided_slice_op.cc:108 : Invalid argument: slice index 1 of dimension 0 out of bounds.
2024-03-05 06:50:19.783738: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 67108864 exceeds 10% of free system memory.
2024-03-05 06:50:19.911323: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 67108864 exceeds 10% of free system memory.
2024-03-05 06:50:23.824540: W tensorflow/core/framework/op_kernel.cc:1753] OP_REQUIRES failed at strided_slice_op.cc:108 : Invalid argument: slice index 1 of dimension 0 out of bounds.
2024-03-05 06:50:23.830073: W tensorflow/core/framework/op_kernel.cc:1753] OP_REQUIRES failed at strided_slice_op.cc:108 : Invalid argument: slice index 1 of dimension 0 out of bounds.
2024-03-05 06:50:23.834308: W tensorflow/core/framework/op_kernel.cc:1753] OP_REQUIRES failed at strided_slice_op.cc:108 : Invalid argument: slice index 1 of dimension 0 out of bounds.
Traceback (most recent call last):
File "crater.py", line 365, in
Function call stack: keras_scratch_graph
(rcnn11) C:\Users\juteno\projet\11\Mask_RCNN-master\samples\crater>
could someone help me please ?
The code runs only on CPU. I guess the error arises due to the this message: " Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2". Can you kindly explain why?
BTW, I followed all instructions and requirements both in Conda and without. I successfully ran the cuda sample with GPU full usage.
OS: Windows 10 GPU: NVIDIA 1080 Cuda: 9.0 cuDNN: 7.4.2 Python: 3.6