From aa9409fbc44150b0794b7149eef17d339166443e Mon Sep 17 00:00:00 2001 From: "lyuxiang.lx" Date: Fri, 5 Jul 2024 10:00:08 +0800 Subject: [PATCH] add disclaimer --- README.md | 5 ++++- runtime/python/Dockerfile | 7 ++----- runtime/python/cosyvoice.proto | 13 ------------- 3 files changed, 6 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 7c9fe7c..511170c 100644 --- a/README.md +++ b/README.md @@ -142,4 +142,7 @@ You can also scan the QR code to join our officla Dingding chat group. 1. We borrowed a lot of code from [Matcha-TTS](https://github.com/shivammehta25/Matcha-TTS). 2. We borrowed a lot of code from [AcademiCodec](https://github.com/yangdongchao/AcademiCodec). -3. We borrowed a lot of code from [WeNet](https://github.com/wenet-e2e/wenet). \ No newline at end of file +3. We borrowed a lot of code from [WeNet](https://github.com/wenet-e2e/wenet). + +## Disclaimer +The content provided above is for academic purposes only and is intended to demonstrate technical capabilities. Some examples are sourced from the internet. If any content infringes on your rights, please contact us to request its removal. \ No newline at end of file diff --git a/runtime/python/Dockerfile b/runtime/python/Dockerfile index 70bb24f..a9a43a5 100644 --- a/runtime/python/Dockerfile +++ b/runtime/python/Dockerfile @@ -1,4 +1,4 @@ -FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime +FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04 ENV DEBIAN_FRONTEND=noninteractive WORKDIR /opt/CosyVoice @@ -6,10 +6,7 @@ WORKDIR /opt/CosyVoice RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get update -y RUN apt-get -y install python3-dev cmake python3-pip git -# install torch takes a long time, cache it in case we may change requirements.txt -# RUN git clone --depth 1 https://github.com/FunAudioLLM/CosyVoice.git -ADD CosyVoice.tar . -RUN mv CosyVoice_dockerfile CosyVoice +RUN git clone --recursive https://github.com/FunAudioLLM/CosyVoice.git RUN cd CosyVoice && pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com RUN cd CosyVoice/runtime/python && python3 -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. cosyvoice.proto CMD ["/bin/bash", "-c", "cd /opt/CosyVoice/CosyVoice/runtime/python && . ./path/sh && python3 server.py --port 50000 --max_conc 4 --model_dir speech_tts/CosyVoice-300M && sleep infinity"] \ No newline at end of file diff --git a/runtime/python/cosyvoice.proto b/runtime/python/cosyvoice.proto index cb4a6e0..babf3e7 100644 --- a/runtime/python/cosyvoice.proto +++ b/runtime/python/cosyvoice.proto @@ -1,16 +1,3 @@ -# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. syntax = "proto3"; package cosyvoice;