Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract with dlib-cnn doesn't work on macOS #488

Closed
helloall1900 opened this issue Sep 3, 2018 · 2 comments
Closed

Extract with dlib-cnn doesn't work on macOS #488

helloall1900 opened this issue Sep 3, 2018 · 2 comments
Labels

Comments

@helloall1900
Copy link
Contributor

Note: Please only report bugs in this repository. Just because you are getting an error message does not automatically mean you have discovered a bug. If you don't have a lot of experience with this type of project, or if you need for setup help and other issues in using the faceswap tool, please refer to the faceswap-playground instead. The faceswap-playground is also an excellent place to ask questions and submit feedback.

Expected behavior

Describe, in some detail, what you are trying to do and what the output is that you expect from the program.

Actual behavior

Describe, in some detail, what the program does instead. Be sure to include any error message or screenshots.

Steps to reproduce

Describe, in some detail, the steps you tried that resulted in the behavior described above.

Other relevant information

Extract with dnn-lib on mac OS X 10.13.5 failed:

Failed to extract from image: NoneType is not iterable

GPU: NVIDIA GTX 1080, 8GB
CUDA: 9.1
Python: 3.6.5

Reason is NVML library is not supported on macOS, so GPUStats.initialize() in gpu_stats.py fail with pynvml.NVMLError_LibraryNotFound, self.handles = None, get_free() gets Exception: "NoneType is not iterable" when extracting with dlib-cnn, no face will be dectected.
Can we work around it?

@torzdf torzdf added the bug label Sep 3, 2018
@torzdf
Copy link
Collaborator

torzdf commented Sep 3, 2018

NVML is kind of integral to extract. It may be that we may have to add some kind of manual config for macOS, but unfortunately it's not a priority right now. I will look into it when I have a chance (or someone else can raise a PR).

In the meantime you can rollback to the last pre-nvml build (https://github.com/deepfakes/faceswap/tree/f90cd92ec36a0860c58a75631f762069419149de)

torzdf pushed a commit that referenced this issue Oct 1, 2018
* fix: gpu stat for OS X
- Use pynvx to get GPU info on OS X
- fix face extract with dlib

Issue #488
@torzdf
Copy link
Collaborator

torzdf commented Oct 22, 2018

implemented in #510

@torzdf torzdf closed this as completed Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants