mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-03-13 03:17:41 +03:00
resume thread
This commit is contained in:
parent
1a2220bfe4
commit
34066aa4f6
@ -108,12 +108,6 @@ def fused_add_tanh_sigmoid_multiply(input_a, input_b, n_channels):
|
||||
return acts
|
||||
|
||||
|
||||
def convert_pad_shape(pad_shape):
|
||||
l = pad_shape[::-1]
|
||||
pad_shape = [item for sublist in l for item in sublist]
|
||||
return pad_shape
|
||||
|
||||
|
||||
def shift_1d(x):
|
||||
x = F.pad(x, convert_pad_shape([[0, 0], [0, 0], [1, 0]]))[:, :, :-1]
|
||||
return x
|
||||
|
@ -121,7 +121,7 @@ def subsequent_mask(length):
|
||||
return mask
|
||||
|
||||
|
||||
#@torch.jit.script
|
||||
# @torch.jit.script
|
||||
@torch.jit._script_if_tracing
|
||||
def fused_add_tanh_sigmoid_multiply(input_a, input_b, n_channels):
|
||||
n_channels_int = n_channels[0]
|
||||
|
@ -1,6 +1,7 @@
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import threading
|
||||
import numpy as np
|
||||
from downloader.SampleDownloader import downloadSample, getSampleInfos
|
||||
from voice_changer.Local.ServerDevice import ServerDevice, ServerDeviceCallbacks
|
||||
@ -66,8 +67,8 @@ class VoiceChangerManager(ServerDeviceCallbacks):
|
||||
|
||||
self.serverDevice = ServerDevice(self)
|
||||
|
||||
# thread = threading.Thread(target=self.serverDevice.start, args=())
|
||||
# thread.start()
|
||||
thread = threading.Thread(target=self.serverDevice.start, args=())
|
||||
thread.start()
|
||||
|
||||
# 設定保存用情報
|
||||
self.stored_setting: dict[str, str | int | float] = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user