Note:由于显卡要求及环境配置繁琐,本文以云端AutoDL为例,且本文内容仅供学习交流使用,请勿用于非法用途等。
数据准备
- 准备好一个时常5-10min的录制音频,音频的好坏决定训练模型的好坏,音频可以是一段没有背景音乐的朗诵,内容随便,完成后上传至自己的阿里云盘(后续用阿里云盘上传云端)
AutoDL注册
- 首先注册AutoDL账号,用于租用GPU,并充值(充个几块钱即可)
https://www.autodl.com/home
- 可以查看算力市场各显卡的价格
- 由于最近AutoDL很难抢到便宜的显卡,因此这里提供一个抢显卡的脚本,首先选好镜像文件,选择社区镜像中的RVC最新镜像(如下图)
- 选择完成后按F12将代码复制控制台后按回车,会自动抢你所设置的区间的GPU:
//【这里是配置项】
var money_range = [0.8, 1.5]; // 设置价格区间(比如这里是1元到3元,直接修改数字就行)
var region_range = [""]; // 设置过滤地区(如果不设置则不限地区)
//【下面的不要动】
var congrats = false;
var node_list = document.querySelector(".list-filter .filter-item .el-radio-group").children;
var start = function start(i) {
if (congrats) return;
if (region_range.indexOf(node_list[i].textContent.trim()) !== -1) {
start(++i);
return;
}
var node = node_list[i];
node.click();
var timer = setTimeout(function () {
var _document$querySelect;
var num = ((_document$querySelect = document.querySelector(".pay-wrap .pay-right .price .sum").children[1].getElementsByClassName("num")[0]) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.textContent) || -1;
if (Number(num) >= money_range[0] && Number(num) <= money_range[1]) {
document.querySelector(".operation .el-button--primary").click();
congrats = true;
console.log("恭喜!抢到了");
return;
}
console.log(node.textContent + "暂时没有,下一个");
if (i >= node_list.length - 1) {
start(0);
} else {
start(++i);
}
clearTimeout(timer)
}, 1000);
};
start(0);
- 代码来源与出处,感谢大佬:
https://www.bilibili.com/video/BV1Ku4m1w7wT/?spm_id_from=333.1007.top_right_bar_window_custom_collection.content.click&vd_source=9bedb11f59261d8323d93730f51e3f6c
- 抢到后如下所示,我这里运气比较好,抢到了一个0.88元每小时的(云端扣费似乎是以分钟扣费的,若是没满一小时关机,他扣费会低于0.88这个值)
- 点击第二个,设置密码,点击公共网盘,并用阿里云盘手机端扫码登录
今天有点晚,以后再写