Closed SniperM99 closed 3 years ago
It seems that you are using tensorflow with CPU, but have set the data_format
to channels_first
. This is not supported on the CPU.
However, I would not recommend to use the CPU for training. You should make sure, that tensorflow is running on the GPU (see https://www.tensorflow.org/install/gpu).
@christianpayer I had the same issue. I have already installed tensorflow-gpu 1.15.0. But the error was still there. How to fix it? Thanks!
If you encounter this problem, make sure that TF is actually using the GPU (see https://www.tensorflow.org/guide/gpu). Just installing tensorflow-gpu does not ensure that. If some libraries are missing for tensorflow-gpu, or there are some problems with CUDA, tensorflow-gpu will fallback to use the CPU only. Look at the warnings or error messages that are written out by tensorflow during initialization.
when i run main_spine_localization.py file. I get the simgle import error:
Any help is highly appreciated.