mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-24 05:55:01 +03:00
update
This commit is contained in:
parent
7b6b402d9d
commit
15fefdf5c4
2
client/demo/dist/index.js
vendored
2
client/demo/dist/index.js
vendored
File diff suppressed because one or more lines are too long
3024
client/demo/dist/index.js.LICENSE.txt
vendored
3024
client/demo/dist/index.js.LICENSE.txt
vendored
File diff suppressed because it is too large
Load Diff
@ -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) {
|
||||||
|
4
client/lib/package-lock.json
generated
4
client/lib/package-lock.json
generated
@ -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",
|
||||||
|
@ -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": {
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user