-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
ImportError: No module named pathlib #32
Comments
use python3.6 instead of python3? |
Make sure you are running python 3.6 or otherwise try adding pip install --upgrade pathlib |
Otherwise, try running the script in a virtualenv as described in the guide. |
Thanks for quick reply. I have extracted the faces in extract/trump and extract/cage, What wrong am I doing? |
Most likely you are trying to start the script with invalid arguments. You have to specify 'extract', 'train' or 'convert' right after |
I am following the instructions mentioned on this lnk:https://github.com/deepfakes/faceswap/blob/master/USAGE.md which says to execute the following command to train the model! |
Looks like it's a typo in the doc. Use |
Got the issue, its the "train" missed out from the command! |
Yes, thanks man. Have you tried to setup this on aws ec2 p2 instance? |
There is also a typo in the doc for converting: Proper command to convert is: python3.6 faceswap.py convert -i data/trump -o output/trump -m models Sorry for tagging ya all, m noob at using github too! |
@nerdprogrammergm I successfully used floydhub, I made a post about it https://www.reddit.com/r/deepfakes/comments/7mgpki/floydhub_cloud_training/ |
Cool @lukaville , great job. |
The doc changes have been merged. I'll look at your other issue shortly. 👍 |
I have already installed pathlib in python3.6:Requirement already satisfied: pathlib in /usr/local/lib/python3.6/dist-packages
Command executed: python3 faceswap.py extract -i ~/faceswap/photo/trump -o ~/faceswap/data/trump
Traceback (most recent call last):
File "faceswap.py", line 3, in
from scripts.extract import ExtractTrainingData
File "/home/ubuntu/data/faceswap/scripts/extract.py", line 2, in
from lib.cli import DirectoryProcessor
File "/home/ubuntu/data/faceswap/lib/cli.py", line 6, in
from lib.utils import get_image_paths, get_folder, load_images, stack_images
File "/home/ubuntu/data/faceswap/lib/utils.py", line 4, in
from pathlib import Path
ImportError: No module named pathlib
Can anyone help me out with this issue?
The text was updated successfully, but these errors were encountered: