numpy1.15.4 can't find module named 'numpy.core._multiarray_umath' #261
Comments
Numpy 1.16 is broken don't use it. You would need to provide a crash_log for people to be able to help you. |
@qinbatista Same situation here. Have you been able to solve the issue yet?? |
I found numpy1.15.4 really don't have numpy/core/_multiarray_umath but other version have, Maybe tensorflow version is wrong but I already use default setting.... Can't understand why appear such problem, I give up to use Mac, prepare to use Linux and try again |
Hi torzdf, But faceswap can't find numpy/core/_multiarray_umath when I am using numpy1.15.4, program was not crashed just can't compile because of python library error...Maybe version is not matched, but I already installed all library from requirements.txt |
@qinbatista I've finally succeeded running training on my system. My Current Environment numpy v1.16.0 I don't know what exactly solved my problem so I'll explain everything I've done.
after this I was successfully able to run training. However I noticed that VRAM was a huge issue for me. Anyway I hope this helps you! |
congratulation brother! finally you changed numpy version, I think faceswap program have very strictly version requirement. As author said, Windows only will use 20% of GPU, but at least you can run right, I am going to reinstall my computer to linux and try again. |
@qinbatista Thanks! I thought it was something like "exclude 20% of GPU", but its the total opposite. Wow that's quite disappointing. Btw are u going to run linux virtually? |
hahaha, no, I am going to run totally on linux machine, I have similar machine like yours, I7-7700k, GTX1060. I will install one more linux system on my PC in order to use 100% of GPU, so it will save me a lot of time, as I know some people sell APP named deepfakeAPP or similer like that in China, just download and doule click to use, but it is really slow, linux is the best choice, but few people will do like that, so I want to try linux anyway, hahaha good bless me |
@qinbatista |
Don't use numpy 1.16.0. There is a bug which means all your system RAM will get swallowed up and your system will crash. Windows will RESERVE approx 20% of your GPU, you will still have approx 80% for faceswapping. This: I recommend using the installer to install in Windows. You can find it in releases. |
@torzdf Contrary to your argument (I have also checked deepfakes/faceswap#594 (comment)), I was able to successfully run extract,train,convert with no errors. |
You will, at some point, hit a memory leak on extract with numpy 1.16.0: |
@torzdf As you said I hit the memory leak with 1.16.0, it did not crash but slowed the process immensely. Thanks for helping out! |
Python version: 3.6.8
Operating system: macOS Mojave 10.14.3
command: python faceswap.py extract
error:
03/04/2019 00:54:06 INFO Log level set to: INFO
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
ImportError: numpy.core.multiarray failed to import
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 968, in _find_and_load
SystemError: <class '_frozen_importlib._ModuleLockManager'> returned a result with an error set
ImportError: numpy.core._multiarray_umath failed to import
ImportError: numpy.core.umath failed to import
2019-03-04 00:54:06.762221: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr
Abort trap: 6
I changed numpy to 1.16
error:
03/04/2019 00:52:57 INFO Log level set to: INFO
03/04/2019 00:52:59 INFO Output Directory: output
03/04/2019 00:52:59 INFO Input Directory: input
03/04/2019 00:52:59 INFO Loading Detect from Mtcnn plugin...
03/04/2019 00:52:59 INFO Loading config: '/Users/yupengqin/Desktop/faceswap/config/extract.ini'
03/04/2019 00:52:59 INFO Loading Align from Fan plugin...
03/04/2019 00:52:59 WARNING No GPU detected. Switching to CPU mode
03/04/2019 00:52:59 INFO Starting, this may take a while...
03/04/2019 00:52:59 ERROR No frames to process. Exiting
It seems numpy1.15.4 can't find module but 1.6 or other version of numpy can't be regonized by project.
The text was updated successfully, but these errors were encountered: