mirror of
https://github.com/zebrajr/LivePortrait.git
synced 2025-12-06 00:19:51 +01:00
doc: update readme (#532)
* docs: refine x-pose * docs: refine logo * docs: fix href
This commit is contained in:
parent
6e48b2f5b9
commit
1986663be3
44
readme.md
44
readme.md
|
|
@ -90,33 +90,38 @@ conda create -n LivePortrait python=3.10
|
|||
conda activate LivePortrait
|
||||
```
|
||||
|
||||
#### For Linux or Windows Users
|
||||
[X-Pose](https://github.com/IDEA-Research/X-Pose) requires your `torch` version to be compatible with the CUDA version.
|
||||
#### For Linux 🐧 or Windows 🪟 Users
|
||||
[X-Pose](https://github.com/IDEA-Research/X-Pose), required by Animals mode, is a dependency that needs to be installed. The step of `Check your CUDA versions` is **optional** if you only want to run Humans mode.
|
||||
|
||||
Firstly, check your current CUDA version by:
|
||||
```bash
|
||||
nvcc -V # example versions: 11.1, 11.8, 12.1, etc.
|
||||
```
|
||||
<details>
|
||||
<summary>Check your CUDA versions</summary>
|
||||
|
||||
Then, install the corresponding torch version. Here are examples for different CUDA versions. Visit the [PyTorch Official Website](https://pytorch.org/get-started/previous-versions) for installation commands if your CUDA version is not listed:
|
||||
```bash
|
||||
# for CUDA 11.1
|
||||
pip install torch==1.10.1+cu111 torchvision==0.11.2 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html
|
||||
# for CUDA 11.8
|
||||
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu118
|
||||
# for CUDA 12.1
|
||||
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121
|
||||
# ...
|
||||
```
|
||||
Firstly, check your current CUDA version by:
|
||||
```bash
|
||||
nvcc -V # example versions: 11.1, 11.8, 12.1, etc.
|
||||
```
|
||||
|
||||
Then, install the corresponding torch version. Here are examples for different CUDA versions. Visit the [PyTorch Official Website](https://pytorch.org/get-started/previous-versions) for installation commands if your CUDA version is not listed:
|
||||
```bash
|
||||
# for CUDA 11.1
|
||||
pip install torch==1.10.1+cu111 torchvision==0.11.2 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html
|
||||
# for CUDA 11.8
|
||||
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu118
|
||||
# for CUDA 12.1
|
||||
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121
|
||||
# ...
|
||||
```
|
||||
|
||||
**Note**: On Windows systems, some higher versions of CUDA (such as 12.4, 12.6, etc.) may lead to unknown issues. You may consider downgrading CUDA to version 11.8 for stability. See the [downgrade guide](https://github.com/dimitribarbot/sd-webui-live-portrait/blob/main/assets/docs/how-to-install-xpose.md#cuda-toolkit-118) by [@dimitribarbot](https://github.com/dimitribarbot).
|
||||
</details>
|
||||
|
||||
**Note**: On Windows systems, some higher versions of CUDA (such as 12.4, 12.6, etc.) may lead to unknown issues. You may consider downgrading CUDA to version 11.8 for stability. See the [downgrade guide](https://github.com/dimitribarbot/sd-webui-live-portrait/blob/main/assets/docs/how-to-install-xpose.md#cuda-toolkit-118) by [@dimitribarbot](https://github.com/dimitribarbot).
|
||||
|
||||
Finally, install the remaining dependencies:
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
#### For macOS with Apple Silicon Users
|
||||
#### For macOS with Apple Silicon Users
|
||||
The [X-Pose](https://github.com/IDEA-Research/X-Pose) dependency does not support macOS, so you can skip its installation. While Humans mode works as usual, Animals mode is not supported. Use the provided requirements file for macOS with Apple Silicon:
|
||||
```bash
|
||||
# for macOS with Apple Silicon users
|
||||
|
|
@ -175,7 +180,8 @@ python inference.py -h
|
|||
#### Fast hands-on (animals) 🐱🐶
|
||||
Animals mode is ONLY tested on Linux and Windows with NVIDIA GPU.
|
||||
|
||||
You need to build an OP named `MultiScaleDeformableAttention` first, which is used by [X-Pose](https://github.com/IDEA-Research/X-Pose), a general keypoint detection framework.
|
||||
You need to build an OP named `MultiScaleDeformableAttention` first (refer to the <a href="#for-linux--or-windows--users">Check your CUDA versions</a> if needed), which is used by [X-Pose](https://github.com/IDEA-Research/X-Pose), a general keypoint detection framework.
|
||||
|
||||
```bash
|
||||
cd src/utils/dependencies/XPose/models/UniPose/ops
|
||||
python setup.py build install
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
|
||||
## 🔥 更新日志
|
||||
- **`2025/06/01`**: 🌍 过去一年里,LivePortrait 🚀 已成为高效的人像与宠物(猫狗)动画解决方案,被快手、抖音、剪映、视频号等主流视频平台,以及众多初创公司和创作者所采用。🎉
|
||||
- **`2025/06/01`**:🌍 过去一年里,LivePortrait 🚀 已成为高效的人像与宠物(猫狗)动画解决方案,被快手、抖音、剪映、视频号等主流视频平台,以及众多初创公司和创作者所采用。🎉
|
||||
- **`2025/01/01`**:🐶 我们更新了一版动物模型(使用了更多动物数据),具体查看[**这里**](./assets/docs/changelog/2025-01-01.md).
|
||||
- **`2024/10/18`**:❗ 我们更新了`transformers`,`gradio`库的版本避免安全漏洞,具体查看[这里](https://github.com/KwaiVGI/LivePortrait/pull/421/files).
|
||||
- **`2024/08/29`**:📦 我们更新了Windows[一键安装程序](https://huggingface.co/cleardusk/LivePortrait-Windows/blob/main/LivePortrait-Windows-v20240829.zip)并支持自动更新, 详情建[这里](https://huggingface.co/cleardusk/LivePortrait-Windows#20240829)。
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user