deepfakes / faceswap-playground

User dedicated repo for the faceswap project
306 stars 194 forks source link

dlib-cnn #204

Closed sjunique closed 6 years ago

sjunique commented 6 years ago

have installed the recent facewap version according to the requirements.txt every things is working fine except getting the following error while usling dlib-cnn i even downloaded the dlib-master from github and compiled that too I am using faceswap GUI

Failed to extract from image: Reason: std::bad_alloc system: linux (linux mint) python version Python 3.5.5 |Anaconda, Inc.| (default, May 13 2018, 21:12:35) [GCC 7.2.0] on linux

sjunique commented 6 years ago

have installed the recent facewap version according to the requirements.txt every things is working fine except getting the following error while usling dlib-cnn i even downloaded the dlib-master from github and compiled that too I am using faceswap GUI

Initializing DLib for frame size 4418x4418 Adding DLib - CNN detector Failed to extract from image: Reason: std::bad_alloc system: linux (linux mint) python version Python 3.5.5 |Anaconda, Inc.| (default, May 13 2018, 21:12:35) [GCC 7.2.0] on linux

torzdf commented 6 years ago

Not enough VRAM. What GFX card are you running? Also post the full output when running extract with the -v flag.

sjunique commented 6 years ago

I have got 1080ti and 1070 ,8gb ram dlib version : '19.15.0' following is from the GUI same thing from terminal except one extra line:Initializing DLib for frame size 4408x4408

Loading... Using TensorFlow backend. Output Directory: /media/unique/backup2/gui_faceset/ki_v1_aligned Input Directory: /media/unique/backup2/gui_faceset/KI_aligned Loading Extract from Extract_Align plugin... Using json serializer Alignments filepath: /home/unique/Desktop/clone-faceswap/faceswap/ Starting, this may take a while...

0%| | 0/805 [00:00<?, ?it/s] ----- Initial GPU Stats ----- GPU Driver: 390.48 GPU Device count: 2 GPU Devices: ['GeForce GTX 1080 Ti', 'GeForce GTX 1070'] GPU VRAM: [11175.375, 8119.5625] GPU VRAM free: 10926.125

Initializing keras model... 2018-08-24 21:31:39.330688: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2018-08-24 21:31:39.500509: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:897] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2018-08-24 21:31:39.501426: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1392] Found device 0 with properties: name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.582 pciBusID: 0000:26:00.0 totalMemory: 10.91GiB freeMemory: 10.51GiB 2018-08-24 21:31:39.603000: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:897] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2018-08-24 21:31:39.603647: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1392] Found device 1 with properties: name: GeForce GTX 1070 major: 6 minor: 1 memoryClockRate(GHz): 1.683 pciBusID: 0000:27:00.0 totalMemory: 7.93GiB freeMemory: 7.83GiB 2018-08-24 21:31:39.604009: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1471] Adding visible gpu devices: 0, 1 2018-08-24 21:31:40.919254: I tensorflow/core/common_runtime/gpu/gpu_device.cc:952] Device interconnect StreamExecutor with strength 1 edge matrix: 2018-08-24 21:31:40.919300: I tensorflow/core/common_runtime/gpu/gpu_device.cc:958] 0 1 2018-08-24 21:31:40.919306: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] 0: N N 2018-08-24 21:31:40.919311: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] 1: N N 2018-08-24 21:31:40.920061: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1084] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2304 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:26:00.0, compute capability: 6.1) 2018-08-24 21:31:40.954167: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1084] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:1 with 1673 MB memory) -> physical GPU (device: 1, name: GeForce GTX 1070, pci bus id: 0000:27:00.0, compute capability: 6.1) GPU VRAM free: 8266.625 Initializing DLib for frame size 4408x4408 Adding DLib - CNN detector Failed to extract from image: /media/unique/backup2/gui_faceset/KI_aligned/00000_0_0_0.png. Reason: std::bad_alloc

Adding DLib - CNN detector Failed to extract from image: /media/unique/backup2/gui_faceset/KI_aligned/00001_0_0_0.png. Reason: std::bad_alloc

Adding DLib - CNN detector Failed to extract from image: /media/unique/backup2/gui_faceset/KI_aligned/00003_0_0_0.png. Reason: std::bad_alloc

Adding DLib - CNN detector Failed to extract from image: /media/unique/backup2/gui_faceset/KI_aligned/00006_0_0_0.png. Reason: std::bad_alloc

Adding DLib - CNN detector Failed to extract from image: /media/unique/backup2/gui_faceset/KI_aligned/00008_0_0_0.png. Reason: std::bad_alloc

Adding DLib - CNN detector Failed to extract from image: /media/unique/backup2/gui_faceset/KI_aligned/00010_0.png. Reason: std::bad_alloc

Adding DLib - CNN detector Failed to extract from image: /media/unique/backup2/gui_faceset/KI_aligned/00010_0_0_0.png. Reason: std::bad_alloc

Adding DLib - CNN detector Failed to extract from image: /media/unique/backup2/gui_faceset/KI_aligned/00011_0.png. Reason: std::bad_alloc

Adding DLib - CNN detector Failed to extract from image: /media/unique/backup2/gui_faceset/KI_aligned/00014_0_0_0.png. Reason: std::bad_alloc

Adding DLib - CNN detector Failed to extract from image: /media/unique/backup2/gui_faceset/KI_aligned/00016_0_0_0.png. Reason: std::bad_alloc

Adding DLib - CNN detector Terminating Process... Terminated Process exited.

sjunique commented 6 years ago

saw in one of the post dlib.DLIB_USE_CUDA and imine was not properly installed now all is good