WIP:common sample

This commit is contained in:
wataru 2023-06-16 17:24:51 +09:00
parent 4f427d5700
commit b84ae93511
4 changed files with 5 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -26,7 +26,8 @@ export const MergeLabDialog = () => {
const key = `${cur.modelType},${cur.samplingRate},${cur.embChannels}` const key = `${cur.modelType},${cur.samplingRate},${cur.embChannels}`
const val = { type: cur.modelType, samplingRate: cur.samplingRate, embChannels: cur.embChannels } const val = { type: cur.modelType, samplingRate: cur.samplingRate, embChannels: cur.embChannels }
const existKeys = Object.keys(prev) const existKeys = Object.keys(prev)
if (cur.modelFile.length == 0) { console.log("modelFi;e:::::::::::::::::::", cur.modelFile)
if (!cur.modelFile || cur.modelFile.length == 0) {
return prev return prev
} }
if (cur.modelType == "onnxRVC" || cur.modelType == "onnxRVCNono") { if (cur.modelType == "onnxRVC" || cur.modelType == "onnxRVCNono") {

View File

@ -22,7 +22,7 @@ export const ModelSlotArea = (_props: ModelSlotAreaProps) => {
return [] return []
} }
return serverSetting.serverSetting.modelSlots.map((x, index) => { return serverSetting.serverSetting.modelSlots.map((x, index) => {
if (x.modelFile.length == 0) { if (!x.modelFile || x.modelFile.length == 0) {
return null return null
} }
const tileContainerClass = index == serverSetting.serverSetting.modelSlotIndex ? "model-slot-tile-container-selected" : "model-slot-tile-container" const tileContainerClass = index == serverSetting.serverSetting.modelSlotIndex ? "model-slot-tile-container-selected" : "model-slot-tile-container"

View File

@ -146,10 +146,7 @@ class VoiceChanger:
def get_info(self): def get_info(self):
data = asdict(self.settings) data = asdict(self.settings)
if self.voiceChanger is not None: if self.voiceChanger is not None:
print("------------------ self.voiceChanger is not None")
data.update(self.voiceChanger.get_info()) data.update(self.voiceChanger.get_info())
else:
print("------------------ self.voiceChanger is None")
return data return data
def get_performance(self): def get_performance(self):