Shawn-Shan / fawkes

Fawkes, privacy preserving tool against facial recognition systems. More info at https://sandlab.cs.uchicago.edu/fawkes
https://sandlab.cs.uchicago.edu/fawkes
BSD 3-Clause "New" or "Revised" License
5.22k stars 481 forks source link

GPU not working #96

Closed davita8 closed 3 years ago

davita8 commented 4 years ago

2020-11-05 13:42:47.401128: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 2020-11-05 13:42:47.471487: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll 2020-11-05 13:42:47.492254: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected 2020-11-05 13:42:47.495339: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: DESKTOP-6UFQATQ 2020-11-05 13:42:47.495442: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: DESKTOP-6UFQATQ

For some reason I could not work with you GPU. I checked and everything is in order on the GPU side. Anything, does the GPU need a specific parameter?

2020-11-05 13:41:01.369615: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll 2020-11-05 13:41:01.370083: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_100.dll 2020-11-05 13:41:01.372595: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cufft64_100.dll 2020-11-05 13:41:01.373223: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_100.dll 2020-11-05 13:41:01.374232: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusolver64_100.dll 2020-11-05 13:41:01.374790: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusparse64_100.dll 2020-11-05 13:41:01.378329: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn64_7.dll 2020-11-05 13:41:01.378963: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0 2020-11-05 13:41:01.379950: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix: 2020-11-05 13:41:01.380375: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0 2020-11-05 13:41:01.383201: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N 2020-11-05 13:41:01.385446: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/device:GPU:0 with 6721 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2070 with Max-Q Design, pci bus id: 0000:01:00.0, compute capability: 7.5)

MarkSCQ commented 4 years ago

Hi, can you share me with your Python, TensorFlow Keras version? I am now using Python 3.6.5, Tensorflow 1.12.0, Kears 2.2.5. This is the command I am using python .\fawkes\protection.py -d E:\nistimg\test\00002 -g 0 There are many errors like ModuleNotFoundError or str JSONDecodeError...

Shawn-Shan commented 3 years ago

We uses Tensorflow-1.14.0, Keras-2.3.1. Make sure you install tensorflow-gpu, rather than tensorflow

MarkSCQ commented 3 years ago

We uses Tensorflow-1.14.0, Keras-2.3.1. Make sure you install tensorflow-gpu, rather than tensorflow

Thanks!