Python ModuleNotFoundError:没有名为';lib.utils';来自colab环境的faceit作为deepfake项目
我正试图通过以下方式测试colab google的: 但当我尝试安装这部分代码时:Python ModuleNotFoundError:没有名为';lib.utils';来自colab环境的faceit作为deepfake项目,python,linux,ubuntu,video,Python,Linux,Ubuntu,Video,我正试图通过以下方式测试colab google的: 但当我尝试安装这部分代码时: import faceit # Create the model with params: model name, person A name, person B name. faceit = FaceIt('fallon_to_oliver', 'fallon', 'oliver') # Add any number of videos for person A by specifying the YouT
import faceit
# Create the model with params: model name, person A name, person B name.
faceit = FaceIt('fallon_to_oliver', 'fallon', 'oliver')
# Add any number of videos for person A by specifying the YouTube url of the video.
faceit.add_video('fallon', 'fallon_emmastone1.mp4', 'https://www.youtube.com/watch?v=9p5_6eicatI')
faceit.add_video('fallon', 'fallon_single1.mp4', 'https://www.youtube.com/watch?v=bEQl6Pt-654')
faceit.add_video('fallon', 'fallon_sesamestreet1.mp4', 'https://www.youtube.com/watch?v=72ElvvAjvHc')
# Do the same for person B.
faceit.add_video('oliver', 'oliver_trumpcard1.mp4', 'https://www.youtube.com/watch?v=jZjmlJPJgug')
faceit.add_video('oliver', 'oliver_taxreform1.mp4', 'https://www.youtube.com/watch?v=z4gBMw64aqk')
faceit.add_video('oliver', 'oliver_zazu1.mp4', 'https://www.youtube.com/watch?v=1f2iawp0y5Y')
我得到这个错误:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-60-5b08ef1ca42e> in <module>()
----> 1 import faceit
2 # Create the model with params: model name, person A name, person B name.
3 faceit = FaceIt('fallon_to_oliver', 'fallon', 'oliver')
4
5 # Add any number of videos for person A by specifying the YouTube url of the video.
/content/faceit/faceit.py in <module>()
16 sys.path.append('faceswap')
17
---> 18 from lib.utils import FullHelpArgumentParser
19 from scripts.extract import ExtractTrainingData
20 from scripts.train import TrainingProcessor
ModuleNotFoundError: No module named 'lib.utils'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
并尝试自己安装faceswap,如下所示:
%cd 'Deepface-faceswap'
!python setup.py build_ext --inplace
,或尝试通过以下命令安装不同的Linux util库:
!sudo apt-get update -y
!sudo apt-get install -y staden-io-lib-utils
!sudo apt-get install python.lib.utils
!sudo apt install python3-darts.lib.utils.lru
但它并没有成功
我会适当的,任何帮助来解决它
谢谢
!sudo apt-get update -y
!sudo apt-get install -y staden-io-lib-utils
!sudo apt-get install python.lib.utils
!sudo apt install python3-darts.lib.utils.lru