Commit f75a7359 authored by chenpangpang's avatar chenpangpang
Browse files

feat: 初始提交

parent 1c879816
Pipeline #1549 canceled with stages
.idea
chenyh
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-python3.10-cuda12.1-ubuntu22.04 as base
ARG IMAGE=parler-tts-build
ARG IMAGE_UPPER=parler_tts
ARG BRANCH=gpu
RUN cd /root && git clone -b $BRANCH http://developer.hpccube.com/codes/chenpangpang/$IMAGE.git
WORKDIR /root/$IMAGE/$IMAGE_UPPER
RUN pip install -r requirements.txt
#########
# Prod #
#########
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-python3.10-cuda12.1-ubuntu22.04
ARG IMAGE=parler-tts-build
ARG IMAGE_UPPER=parler_tts
COPY chenyh/$IMAGE/frpc_linux_amd64_v0.2 /opt/conda/lib/python3.10/site-packages/gradio/
RUN chmod +x /opt/conda/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.2
COPY chenyh/$IMAGE/ylacombe/parler-large-v1-og /root/$IMAGE_UPPER/ylacombe/parler-large-v1-og
COPY chenyh/$IMAGE/parler-tts/parler-tts-mini-v1 /root/$IMAGE_UPPER/parler-tts/parler-tts-mini-v1
COPY --from=base /opt/conda/lib/python3.10/site-packages /opt/conda/lib/python3.10/site-packages
COPY --from=base /root/$IMAGE/$IMAGE_UPPER /root/$IMAGE_UPPER
COPY --from=base /root/$IMAGE/启动器.ipynb /root/$IMAGE/start.sh /root/
# pip install huggingface-cli
import os
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'
model_list = [
"parler-tts/parler-tts-mini-v1",
"ylacombe/parler-large-v1-og",
]
for model_path in model_list:
os.system(f"huggingface-cli download --resume-download {model_path} --local-dir ./{model_path} --local-dir-use-symlinks False")
\ No newline at end of file
parler_tts @ 6ca328f6
Subproject commit 6ca328f6021057208862bd30835d451a011f2377
#!/bin/bash
cd /root/parler_tts
python app.py
{
"cells": [
{
"cell_type": "markdown",
"id": "e5c5a211-2ccd-4341-af10-ac546484b91f",
"metadata": {
"tags": []
},
"source": [
"## 说明\n",
"- 启动需要加载模型,需要3分钟左右的时间\n",
"- 启动和重启 Notebook 点上方工具栏中的「重启并运行所有单元格」。出现如下内容就算成功了:\n",
" - `Running on local URL: http://0.0.0.0:7860`\n",
" - `Running on public URL: https://xxxxxxxxxxxxxxx.gradio.live`\n",
"- 通过以下方式开启页面:\n",
" - 控制台打开「自定义服务」了,访问自定义服务端口号设置为7860\n",
" - 直接打开显示的公开链接`public URL`\n",
"\n",
"## 功能介绍\n",
"- 原项目地址:https://huggingface.co/spaces/parler-tts/parler_tts\n",
"- parler-tts:一款使用简单文本提示即可生成高保真语音的工具"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "53a96614-e2d2-4710-a82b-0d5ca9cb9872",
"metadata": {
"tags": [],
"ExecuteTime": {
"end_time": "2024-08-19T02:28:47.760610Z",
"start_time": "2024-08-19T02:28:47.612252Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"start.sh: line 3: cd: /root/Tile-Upscaler: No such file or directory\r\n",
"python: can't open file '/Users/chenyihang/work/project/parler-tts-build/app.py': [Errno 2] No such file or directory\r\n"
]
}
],
"source": [
"# 启动\n",
"!sh start.sh"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9e81ae9d-3a34-43a0-943a-ff5e9d6ce961",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment