frontend: sd1.4->sd1.5
This commit is contained in:
parent
9daeca7693
commit
88a3e16ca5
@ -181,7 +181,7 @@ function ModelSettingBlock() {
|
|||||||
return undefined
|
return undefined
|
||||||
case AIModel.FCF:
|
case AIModel.FCF:
|
||||||
return renderFCFModelDesc()
|
return renderFCFModelDesc()
|
||||||
case AIModel.SD14:
|
case AIModel.SD15:
|
||||||
return undefined
|
return undefined
|
||||||
case AIModel.CV2:
|
case AIModel.CV2:
|
||||||
return renderOpenCV2Desc()
|
return renderOpenCV2Desc()
|
||||||
@ -222,7 +222,7 @@ function ModelSettingBlock() {
|
|||||||
'https://arxiv.org/abs/2208.03382',
|
'https://arxiv.org/abs/2208.03382',
|
||||||
'https://github.com/SHI-Labs/FcF-Inpainting'
|
'https://github.com/SHI-Labs/FcF-Inpainting'
|
||||||
)
|
)
|
||||||
case AIModel.SD14:
|
case AIModel.SD15:
|
||||||
return renderModelDesc(
|
return renderModelDesc(
|
||||||
'Stable Diffusion',
|
'Stable Diffusion',
|
||||||
'https://ommer-lab.com/research/latent-diffusion-models/',
|
'https://ommer-lab.com/research/latent-diffusion-models/',
|
||||||
|
@ -9,7 +9,7 @@ export enum AIModel {
|
|||||||
ZITS = 'zits',
|
ZITS = 'zits',
|
||||||
MAT = 'mat',
|
MAT = 'mat',
|
||||||
FCF = 'fcf',
|
FCF = 'fcf',
|
||||||
SD14 = 'sd1.4',
|
SD15 = 'sd1.5',
|
||||||
CV2 = 'cv2',
|
CV2 = 'cv2',
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ const defaultHDSettings: ModelsHDSettings = {
|
|||||||
hdStrategyCropMargin: 128,
|
hdStrategyCropMargin: 128,
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
[AIModel.SD14]: {
|
[AIModel.SD15]: {
|
||||||
hdStrategy: HDStrategy.ORIGINAL,
|
hdStrategy: HDStrategy.ORIGINAL,
|
||||||
hdStrategyResizeLimit: 768,
|
hdStrategyResizeLimit: 768,
|
||||||
hdStrategyCropTrigerSize: 512,
|
hdStrategyCropTrigerSize: 512,
|
||||||
@ -329,7 +329,7 @@ export const isSDState = selector({
|
|||||||
key: 'isSD',
|
key: 'isSD',
|
||||||
get: ({ get }) => {
|
get: ({ get }) => {
|
||||||
const settings = get(settingState)
|
const settings = get(settingState)
|
||||||
return settings.model === AIModel.SD14
|
return settings.model === AIModel.SD15
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user