MatAnyone的安装需要以下前置准备:
- hardware requirement:推荐配备NVIDIA GPU(加速推理),CPU也可运行但效率较低
- software environment:Windows/Linux/macOS系统,需预装Git和Conda
- Python version:3.8及以上
Detailed installation steps:
- 通过Git克隆仓库:
git clone https://github.com/pq-yang/MatAnyone.git
- 创建Conda虚拟环境:
conda create -n matanyone python=3.8 -y
- Activate the environment and install dependencies:
pip install -r requirements.txt
- 从项目README获取预训练模型,放置到
models/
catalogs - (of a computer) run
python test.py
Verify Installation
Common problem solving:
- 依赖安装失败可尝试清华源:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
- 模型文件需手动下载,通常存储在Google Drive或Hugging Face
This answer comes from the articleMatAnyone: Extract video to specify the target portrait of the open-source tool to generate the target portrait videoThe