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)
// useEffect(() => {
// if (clientState.clientState.initialized) {
// initializedRef.current = true
// clientState.clientState.setVoiceChangerClientSetting({
// ...clientState.clientState.setting.voiceChangerClientSetting
// })
// }
// }, [clientState.clientState.initialized])
useEffect(() => {
if (clientState.clientState.initialized) {
initializedRef.current = true
// clientState.clientState.setVoiceChangerClientSetting({
// ...clientState.clientState.setting.voiceChangerClientSetting
// })
}
}, [clientState.clientState.initialized])
useEffect(() => {
if (clientState.clientState.ioErrorCount > 100) {

View File

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

View File

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

View File

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