bugfix: model title

This commit is contained in:
wataru 2023-05-17 12:47:14 +09:00
parent 0379a0ea2e
commit fa833b5b68
3 changed files with 7 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -34,9 +34,10 @@ export const ModelSwitchRow = (_props: ModelSwitchRowProps) => {
const embedstr = x.embChannels
const typestr = x.modelType == 0 ? "org" : "webui"
const metadata = x.deprecated ? `[${index}] [deprecated version]` : `[${index}] [${f0str},${srstr},${embedstr},${typestr}]`
const tuning = `tune:${x.defaultTrans}`
const useIndex = x.indexFile != null && x.featureFile != null ? `index:true` : `index:false`
const subMetadata = `(${tuning},${useIndex})`
const tuning = `t:${x.defaultTune}`
const useIndex = x.indexFile != null && x.featureFile != null ? `i:true` : `i:false`
const defaultIndexRatio = `ir:${x.defaultIndexRatio}`
const subMetadata = `(${tuning},${useIndex},${defaultIndexRatio})`
const displayName = `${metadata} ${x.name || filename} ${subMetadata}`

View File

@ -185,7 +185,8 @@ type ModelSlot = {
featureFile: string,
indexFile: string,
defaultTrans: number,
defaultTune: number,
defaultIndexRatio: number,
modelType: number,
embChannels: number,