refactor: remove filename from merge req

This commit is contained in:
w-okada 2023-08-05 03:05:54 +09:00
parent aef9d2c34b
commit c08099a512
4 changed files with 2 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -107,7 +107,7 @@ export const MergeLabDialog = () => {
const onMergeElementsChanged = (slotIndex: number, strength: number) => {
const newMergeElements = mergeElements.map((x) => {
if (x.slotIndex == slotIndex) {
return { slotIndex: x.slotIndex, filename: x.filename, strength: strength };
return { slotIndex: x.slotIndex, strength: strength };
} else {
return x;
}

View File

@ -540,7 +540,6 @@ export type OnnxExporterInfo = {
// Merge
export type MergeElement = {
slotIndex: number
filename: string // 一意性は保障されない場合がある(フォルダコピーされたときとか)
strength: number
}
export type MergeModelRequest = {

View File

@ -6,7 +6,6 @@ from dataclasses import dataclass
@dataclass
class MergeElement:
slotIndex: int
filename: str
strength: int