Laman-clear安装地址CI
https://github.com/Sanster/lama-cleaner
NVIDIA CUDA 安装下载地址
https://developer.nvidia.com/cuda-toolkit-archive
安装PyTorch支持cuda的
https://pytorch.org/get-started/locally/#anaconda
卸载当前的 PyTorch
pip uninstall torch torchvision torchaudio
运行参数
lama-cleaner --model=lama --device=cuda --port=8080
插件参数
--enable-realesrgan --realesrgan-model RealESRGAN_x4plus --realesrgan-device cuda
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
会将当前用户的 PowerShell 执行策略设置为无限制,这意味着可以在 PowerShell 中执行任何未经数字签名的脚本。
conda init --all
会初始化 conda 并将其添加到 shell 配置中,以便在打开新的终端时自动激活 conda 环境。这将确保 conda 在每次打开终端时都可以使用。
综合来说,这两个命令的效果是允许在 PowerShell 中执行未经数字签名的脚本,并且在每次打开终端时都自动激活 conda 环境