From 5201200848242b7447b3c7f63e4b3ceb884d879e Mon Sep 17 00:00:00 2001 From: ylzz1997 Date: Thu, 3 Aug 2023 17:45:12 +0800 Subject: [PATCH] ruff fix --- README.md | 2 ++ README_zh_CN.md | 2 ++ onnx_export.py | 5 ++++- onnxexport/model_onnx_speaker_mix.py | 3 --- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d144d81..9587604 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ [![Open In Colab](https://img.shields.io/badge/Colab-F9AB00?style=for-the-badge&logo=googlecolab&color=525252)](https://colab.research.google.com/github/svc-develop-team/so-vits-svc/blob/4.1-Stable/sovits4_for_colab.ipynb) [![Licence](https://img.shields.io/badge/LICENSE-AGPL3.0-green.svg?style=for-the-badge)](https://github.com/svc-develop-team/so-vits-svc/blob/4.1-Stable/LICENSE) +This round of limited time update is coming to an end, the warehouse will enter the Archieve state, please know + > ✨ A studio that contains visible f0 editor, speaker mix timeline editor and other features (Where the Onnx models are used) : [MoeVoiceStudio](https://github.com/NaruseMioShirakana/MoeVoiceStudio) diff --git a/README_zh_CN.md b/README_zh_CN.md index 32d5d2b..71c3a60 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -8,6 +8,8 @@ [![在Google Cloab中打开](https://img.shields.io/badge/Colab-F9AB00?style=for-the-badge&logo=googlecolab&color=525252)](https://colab.research.google.com/github/svc-develop-team/so-vits-svc/blob/4.1-Stable/sovits4_for_colab.ipynb) [![LICENSE](https://img.shields.io/badge/LICENSE-AGPL3.0-green.svg?style=for-the-badge)](https://github.com/svc-develop-team/so-vits-svc/blob/4.1-Stable/LICENSE) +本轮限时更新即将结束,仓库将进入Archieve状态,望周知 + diff --git a/onnx_export.py b/onnx_export.py index e288224..b3d18f4 100644 --- a/onnx_export.py +++ b/onnx_export.py @@ -1,8 +1,11 @@ +import argparse import json + import torch + import utils from onnxexport.model_onnx_speaker_mix import SynthesizerTrn -import argparse + parser = argparse.ArgumentParser(description='SoVitsSvc OnnxExport') def OnnxExport(path=None): diff --git a/onnxexport/model_onnx_speaker_mix.py b/onnxexport/model_onnx_speaker_mix.py index f055351..5e95bce 100644 --- a/onnxexport/model_onnx_speaker_mix.py +++ b/onnxexport/model_onnx_speaker_mix.py @@ -1,14 +1,11 @@ import torch from torch import nn -from torch.nn import Conv1d, Conv2d from torch.nn import functional as F -from torch.nn.utils import spectral_norm, weight_norm import modules.attentions as attentions import modules.commons as commons import modules.modules as modules import utils -from modules.commons import get_padding from utils import f0_to_coarse