WIP: switch base from trainer to client 2

This commit is contained in:
wataru 2023-01-14 06:51:51 +09:00
parent 9f3dab0295
commit 728d1e3c4b
3 changed files with 2 additions and 38 deletions

View File

@ -1,27 +1,14 @@
import sys, os, struct, argparse, shutil, traceback, base64, struct
import numpy as np
import sys, os, argparse
import misc.log_control
from dataclasses import dataclass
from datetime import datetime
from distutils.util import strtobool
from scipy.io.wavfile import write, read
# sys.path.append("MMVC_Trainer")
# sys.path.append("MMVC_Trainer/text")
sys.path.append("MMVC_Client/python")
from fastapi.routing import APIRoute
from fastapi import HTTPException, FastAPI, UploadFile, File, Form
from fastapi.encoders import jsonable_encoder
from fastapi.responses import JSONResponse
import uvicorn
import socketio
from typing import Callable
from mods.ssl import create_self_signed_cert
from voice_changer.VoiceChangerManager import VoiceChangerManager
from sio.MMVC_SocketIOApp import MMVC_SocketIOApp

View File

@ -1,34 +1,13 @@
from const import ERROR_NO_ONNX_SESSION
import torch
import math, os, traceback
from scipy.io.wavfile import write, read
import os, traceback
import numpy as np
from dataclasses import dataclass, asdict
import onnxruntime
# import utils
# import commons
# from models import SynthesizerTrn
#from text.symbols import symbols
# from data_utils import TextAudioSpeakerLoader, TextAudioSpeakerCollate
# from mel_processing import spectrogram_torch
#from text import text_to_sequence, cleaned_text_to_sequence
################
from symbols import symbols
# from mmvc_client import get_hparams_from_file, load_checkpoint
from models import SynthesizerTrn
################
# from voice_changer.utils import get_hparams_from_file, load_checkpoint
# from voice_changer.models import SynthesizerTrn
# from voice_changer.symbols import symbols
from voice_changer.TrainerFunctions import TextAudioSpeakerCollate, spectrogram_torch, load_checkpoint, get_hparams_from_file

View File

@ -1,7 +1,5 @@
import numpy as np
from voice_changer.VoiceChanger import VoiceChanger
from fastapi.responses import JSONResponse
from fastapi.encoders import jsonable_encoder
class VoiceChangerManager():
@classmethod