This commit is contained in:
wataru 2023-06-26 02:40:44 +09:00
parent 7b6b402d9d
commit 15fefdf5c4
6 changed files with 3038 additions and 14 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -36,14 +36,14 @@ export const AppStateProvider = ({ children }: Props) => {
}, []) }, [])
const initializedRef = useRef<boolean>(false) const initializedRef = useRef<boolean>(false)
// useEffect(() => { useEffect(() => {
// if (clientState.clientState.initialized) { if (clientState.clientState.initialized) {
// initializedRef.current = true initializedRef.current = true
// clientState.clientState.setVoiceChangerClientSetting({ // clientState.clientState.setVoiceChangerClientSetting({
// ...clientState.clientState.setting.voiceChangerClientSetting // ...clientState.clientState.setting.voiceChangerClientSetting
// }) // })
// } }
// }, [clientState.clientState.initialized]) }, [clientState.clientState.initialized])
useEffect(() => { useEffect(() => {
if (clientState.clientState.ioErrorCount > 100) { if (clientState.clientState.ioErrorCount > 100) {

View File

@ -1,12 +1,12 @@
{ {
"name": "@dannadori/voice-changer-client-js", "name": "@dannadori/voice-changer-client-js",
"version": "1.0.149", "version": "1.0.150",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@dannadori/voice-changer-client-js", "name": "@dannadori/voice-changer-client-js",
"version": "1.0.149", "version": "1.0.150",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@types/readable-stream": "^2.3.15", "@types/readable-stream": "^2.3.15",

View File

@ -1,6 +1,6 @@
{ {
"name": "@dannadori/voice-changer-client-js", "name": "@dannadori/voice-changer-client-js",
"version": "1.0.149", "version": "1.0.150",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
"directories": { "directories": {

View File

@ -36,9 +36,9 @@ class RVCModelSlotGenerator(ModelSlotGenerator):
def _setInfoByPytorch(cls, slot: ModelSlot): def _setInfoByPytorch(cls, slot: ModelSlot):
cpt = torch.load(slot.modelFile, map_location="cpu") cpt = torch.load(slot.modelFile, map_location="cpu")
config_len = len(cpt["config"]) config_len = len(cpt["config"])
version = cpt.get("version", "v1")
print(cpt["version"]) if version == "voras_beta":
if cpt["version"] == "voras_beta":
slot.f0 = True if cpt["f0"] == 1 else False slot.f0 = True if cpt["f0"] == 1 else False
slot.modelType = EnumInferenceTypes.pyTorchVoRASbeta.value slot.modelType = EnumInferenceTypes.pyTorchVoRASbeta.value
slot.embChannels = 768 slot.embChannels = 768