AI/Roop
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
*Roop [#n70ccf65]
RIGHT:更新日&lastmod();
RIGHT:作成日:2023年8月30日
Roopは顔を別の顔に入れ替えるfake作成モジュール
**事前準備 [#lf1ff744]
***VisualStudiのインストール [#pf134dbc]
-以下から「VisualStudioSetup.exe」をダウンロード
--https://visualstudio.microsoft.com/ja/
&ref("./VS_inst1.png");
-インストール
「VisualStudioSetup.exe」を実行
--Python開発
--C++によるデスクトップの開発
--Visual Studio拡張機能の開発
を選択する
''MSにはサインインしない''
&ref("./VS_inst2.png");
&ref("./VS_inst3.png");
&ref("./VS_inst4.png");
&ref("./VS_inst5.png");
最後の画面は「X」で閉じる
***Insight faceのインストール [#f6bb76c2]
>pip install insightface==0.7.3
Collecting insightface==0.7.3
Using cached insightface-0.7.3.tar.gz (439 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting matplotlib
Using cached matplotlib-3.7.2-cp310-cp310-win_amd64.wh...
Collecting Pillow
Using cached Pillow-10.0.0-cp310-cp310-win_amd64.whl (...
Collecting numpy
Using cached numpy-1.25.2-cp310-cp310-win_amd64.whl (1...
Collecting cython
Using cached Cython-3.0.2-cp310-cp310-win_amd64.whl (2...
Collecting scikit-learn
Downloading scikit_learn-1.3.0-cp310-cp310-win_amd64.w...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB...
(略)
Successfully built insightface
Installing collected packages: wcwidth, easydict, urllib...
Running setup.py install for easydict ... done
Successfully installed Pillow-10.0.0 PyWavelets-1.4.1 PyY...
[notice] A new release of pip available: 22.2.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upg...
***ifnudeのインストール [#q1326f71]
>pip install ifnude
Collecting ifnude
Obtaining dependency information for ifnude from https...
Downloading ifnude-0.0.3-py2.py3-none-any.whl.metadata...
Requirement already satisfied: pillow in c:\usr\python\p...
Requirement already satisfied: opencv-python-headless>=4...
Requirement already satisfied: tqdm in c:\usr\python\pyt...
Requirement already satisfied: scikit-image in c:\usr\py...
Requirement already satisfied: onnxruntime in c:\usr\pyt...
Requirement already satisfied: numpy>=1.21.2 in c:\usr\p...
(略)
Requirement already satisfied: pyreadline3 in c:\usr\pyt...
Downloading ifnude-0.0.3-py2.py3-none-any.whl (7.1 kB)
Installing collected packages: ifnude
Successfully installed ifnude-0.0.3
**roopのgithubインストール [#u7389fa7]
拡張機能→URLからインストール
-DLURL
--https://github.com/s0md3v/sd-webui-roop
&ref("./roop_Inst1.png");
&ref("./roop_Inst2.png");
&color(red){''ここまで作業して再起動すると&ref("./Error.t...
&color(red){''(ただし、画面には他の拡張機能と同じように「...
**Error対策 [#la3f8b16]
***Error2の対策 [#o0de1bb3]
stable-diffusion-webui直下の以下の2つのファイルの文末に以...
-requirements.txt
insightface==0.7.3
onnxruntime==1.15.1
-requirements_versions.txt
Insightface==0.7.3
onnx==1.14.1
onnxruntime==1.15.1
ifnude==0.0.3
Stable Diffusion再起動
&color(red){''roopを適用すると&ref("./Error.txt");のError...
***Error3の対策 [#x10f2f44]
stable-diffusion-webui\models\roopにnswapper_128.onnxモデ...
ただし、オリジナルサイトには見つからないが以下からDLできた
-https://drive.google.com/u/0/uc?id=1krOLgjW2tAPaqV-Bw4YA...
&color(red){この対応を行ったらError1も消える};
**作業手順 [#vf83163b]
�‥�当なプロンプトで元画像を作成する(txt2imgで作業)
&ref("./変更前.png");
�▲掘璽匹鮓把蠅垢�
��roopを有効化する
&ref("./roop.png");
�な儿慌菫�をroopにドラッグアンドドロップする
&ref("./変更画像.png");
�ダ言�する
フェイク画像
&ref("./変更後.png");
**参考 [#d848fc40]
-https://www.youtube.com/watch?v=BREOo1ni_sg
-https://resanaplaza.com/2023/07/09/%E3%80%90%E7%B0%A1%E5...
終了行:
*Roop [#n70ccf65]
RIGHT:更新日&lastmod();
RIGHT:作成日:2023年8月30日
Roopは顔を別の顔に入れ替えるfake作成モジュール
**事前準備 [#lf1ff744]
***VisualStudiのインストール [#pf134dbc]
-以下から「VisualStudioSetup.exe」をダウンロード
--https://visualstudio.microsoft.com/ja/
&ref("./VS_inst1.png");
-インストール
「VisualStudioSetup.exe」を実行
--Python開発
--C++によるデスクトップの開発
--Visual Studio拡張機能の開発
を選択する
''MSにはサインインしない''
&ref("./VS_inst2.png");
&ref("./VS_inst3.png");
&ref("./VS_inst4.png");
&ref("./VS_inst5.png");
最後の画面は「X」で閉じる
***Insight faceのインストール [#f6bb76c2]
>pip install insightface==0.7.3
Collecting insightface==0.7.3
Using cached insightface-0.7.3.tar.gz (439 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting matplotlib
Using cached matplotlib-3.7.2-cp310-cp310-win_amd64.wh...
Collecting Pillow
Using cached Pillow-10.0.0-cp310-cp310-win_amd64.whl (...
Collecting numpy
Using cached numpy-1.25.2-cp310-cp310-win_amd64.whl (1...
Collecting cython
Using cached Cython-3.0.2-cp310-cp310-win_amd64.whl (2...
Collecting scikit-learn
Downloading scikit_learn-1.3.0-cp310-cp310-win_amd64.w...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB...
(略)
Successfully built insightface
Installing collected packages: wcwidth, easydict, urllib...
Running setup.py install for easydict ... done
Successfully installed Pillow-10.0.0 PyWavelets-1.4.1 PyY...
[notice] A new release of pip available: 22.2.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upg...
***ifnudeのインストール [#q1326f71]
>pip install ifnude
Collecting ifnude
Obtaining dependency information for ifnude from https...
Downloading ifnude-0.0.3-py2.py3-none-any.whl.metadata...
Requirement already satisfied: pillow in c:\usr\python\p...
Requirement already satisfied: opencv-python-headless>=4...
Requirement already satisfied: tqdm in c:\usr\python\pyt...
Requirement already satisfied: scikit-image in c:\usr\py...
Requirement already satisfied: onnxruntime in c:\usr\pyt...
Requirement already satisfied: numpy>=1.21.2 in c:\usr\p...
(略)
Requirement already satisfied: pyreadline3 in c:\usr\pyt...
Downloading ifnude-0.0.3-py2.py3-none-any.whl (7.1 kB)
Installing collected packages: ifnude
Successfully installed ifnude-0.0.3
**roopのgithubインストール [#u7389fa7]
拡張機能→URLからインストール
-DLURL
--https://github.com/s0md3v/sd-webui-roop
&ref("./roop_Inst1.png");
&ref("./roop_Inst2.png");
&color(red){''ここまで作業して再起動すると&ref("./Error.t...
&color(red){''(ただし、画面には他の拡張機能と同じように「...
**Error対策 [#la3f8b16]
***Error2の対策 [#o0de1bb3]
stable-diffusion-webui直下の以下の2つのファイルの文末に以...
-requirements.txt
insightface==0.7.3
onnxruntime==1.15.1
-requirements_versions.txt
Insightface==0.7.3
onnx==1.14.1
onnxruntime==1.15.1
ifnude==0.0.3
Stable Diffusion再起動
&color(red){''roopを適用すると&ref("./Error.txt");のError...
***Error3の対策 [#x10f2f44]
stable-diffusion-webui\models\roopにnswapper_128.onnxモデ...
ただし、オリジナルサイトには見つからないが以下からDLできた
-https://drive.google.com/u/0/uc?id=1krOLgjW2tAPaqV-Bw4YA...
&color(red){この対応を行ったらError1も消える};
**作業手順 [#vf83163b]
�‥�当なプロンプトで元画像を作成する(txt2imgで作業)
&ref("./変更前.png");
�▲掘璽匹鮓把蠅垢�
��roopを有効化する
&ref("./roop.png");
�な儿慌菫�をroopにドラッグアンドドロップする
&ref("./変更画像.png");
�ダ言�する
フェイク画像
&ref("./変更後.png");
**参考 [#d848fc40]
-https://www.youtube.com/watch?v=BREOo1ni_sg
-https://resanaplaza.com/2023/07/09/%E3%80%90%E7%B0%A1%E5...
ページ名: