each model has its own hdsettings

This commit is contained in:
Qing
2022-07-18 22:43:55 +08:00
parent 8b1f7a672e
commit b0c5d22a5a
7 changed files with 104 additions and 52 deletions

View File

@@ -1,6 +1,6 @@
import React, { ReactNode } from 'react'
import { useRecoilState } from 'recoil'
import { settingState } from '../../store/Atoms'
import { AIModel, settingState } from '../../store/Atoms'
import Selector from '../shared/Selector'
import { Switch, SwitchThumb } from '../shared/Switch'
import Tooltip from '../shared/Tooltip'
@@ -8,12 +8,6 @@ import { LDMSampler } from './HDSettingBlock'
import NumberInputSetting from './NumberInputSetting'
import SettingBlock from './SettingBlock'
export enum AIModel {
LAMA = 'lama',
LDM = 'ldm',
ZITS = 'zits',
}
function ModelSettingBlock() {
const [setting, setSettingState] = useRecoilState(settingState)