2人にそれぞれ異なるloraを適用する
ローカル環境で動く背景透過ツール
■Transparent-Background
ローカル環境で画像、動画の背景透過が可能
■インストール
pip install transparent-background
■使用方法
コマンドプロンプトで対象画像のあるフォルダへ移動
以下コマンドを実行
transparent-background --source [SOURCE] --dest [DEST] --type [TYPE] --ckpt [CKPT] (--fast) (--jit)
例. 画像(_00037-477154971.0_white.png)に対して背景削除&背景白
transparent-background --source _00037-477154971.0_white.png --type white
例. 画像(_00037-477154971.0_white.png)に対して背景削除&マスク
transparent-background --source _00037-477154971.0_white.png --type map
StableDiffusionWebUIアップデート後にloraが機能しない
StableDiffusionWebUIアップデート後にloraが機能しない現象が発生したので解決していく。
原因
アップデート→locon関連でエラー?
AttributeError: 'str' object has no attribute
'filename'<modules.extra_networks.ExtraNetworkParams object at 0x0000000>]: AttributeError
解決方法
- extensionsフォルダからa1111-sd-webui-loconを削除
- 再起動
※CheckPointの変更すると直るって記事を見て一度試してる(それでは直らなかった)からもしかしたら必要かも
※a1111-sd-webui-lycorisはインストール済
まとめ
アップデート怖い