optimize: config

This commit is contained in:
源文雨
2023-08-27 00:35:39 +08:00
parent 80bf0cb8c8
commit 8c36dc2cc7
5 changed files with 144 additions and 146 deletions

View File

@@ -22,7 +22,7 @@ import faiss
import ffmpeg
import gradio as gr
import soundfile as sf
from config import Config
from config import defaultconfig as config
import fairseq
from i18n import I18nAuto
from lib.infer_pack.models import (
@@ -53,7 +53,6 @@ warnings.filterwarnings("ignore")
torch.manual_seed(114514)
config = Config()
if config.dml == True:
def forward_dml(ctx, x, scale):