resume thread

This commit is contained in:
wataru 2023-06-26 10:03:12 +09:00
parent 1a2220bfe4
commit 34066aa4f6
3 changed files with 4 additions and 9 deletions

View File

@ -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

View File

@ -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]

View File

@ -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] = {}