0
0

More than 1 year has passed since last update.

Anacondaを使わずにFaceSwapを使う話

Last updated at Posted at 2021-10-04

初めに

初めてのQiitaの為、至らぬ点が多々あるとは思います

不完全だとは思いますが一旦公開します
markdownの記法にも不馴れな為、見づらいかもしれません
適当に修正していきます

本題

faceswap(https://github.com/deepfakes/faceswap)
を実行するにあたってAnacondaをインストールしてほしくなかった為
Anacondaを使わない方法を模索した

失敗について記述すると冗長になるので要点のみ纏めます

faceswapの詳細、Pythonのインストール等については他の方が書いているものが相当数あるので割愛

環境

OS: Windows10
CPU: Ryzen 3700X
GPU: RTX3070
Python 3.8.6

1,公式ドキュメントに従ってgit clone

cmd
git clone --depth 1 https://github.com/deepfakes/faceswap.git

2,依存関係ライブラリのインストール

cmd
pip install -r requirements_xxx.txt

xxxには適宜、cpu,nvidia,amdを入れてください
cpu: Intel製CPUで学習させたい方
nvidia: Nvidia製GPUで学習させたい方
amd: AMD製GPUで学習させたい方 ※別途PlaidMLが必要になります

2.2 GUIを使えるようにする
cmd
pip install tk

3,起動

cmd
python faceswap.py -h
↓GUIを使いたい場合↓
python faceswap.py gui
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0