README.md 1.35 KB
Newer Older
wangsen's avatar
wangsen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
```markdown
# ClearerVoice-Studio 快速部署与运行指南(国产 DCU 环境)

## 1. 启动 Docker 容器(DCU 专用)

```bash
# 拉取镜像
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.5.1-ubuntu22.04-dtk25.04.2-py3.10

# 启动容器(必须带全以下参数)
docker run -it \
  --network=host \
  --ipc=host \
  --shm-size=64G \
  --device=/dev/kfd \
  --device=/dev/mkfd \
  --device=/dev/dri \
  -v /opt/hyhal:/opt/hyhal \
  --group-add video \
  --cap-add=SYS_PTRACE \
  --security-opt seccomp=unconfined \
  image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.5.1-ubuntu22.04-dtk25.04.2-py3.10 \
  /bin/bash
```


## 2. 下载并安装 ClearerVoice-Studio

```bash
git clone https://github.com/modelscope/ClearerVoice-Studio.git
cd ClearerVoice-Studio
pip install -r requirements.txt

cd clearvoice
pip install --editable .
cd ..
```

## 3. 快速测试

```bash
# 设置 HuggingFace 国内镜像(强烈建议)
export HF_ENDPOINT=https://hf-mirror.com

# 运行官方测试脚本
python test.py
```

看到 `Inference completed successfully` 或类似输出即表示成功。


## 参考资料

- 官方仓库:https://github.com/modelscope/ClearerVoice-Studio/tree/main/clearvoice  
- 中文教程:https://stable-learn.com/zh/clearvoice-studio-tutorial  

## 小贴士

- 模型下载慢请务必设置 `HF_ENDPOINT=https://hf-mirror.com`