chore: model file description
This commit is contained in:
@@ -578,15 +578,15 @@ const GroundImages: React.FC<MessageProps> = forwardRef((props, ref) => {
|
||||
form.current?.form?.setFieldsValue({
|
||||
..._.pick(model?.meta, METAKEYS, {}),
|
||||
size: defaultSize,
|
||||
width: model?.meta?.default_width || 512,
|
||||
height: model?.meta?.default_height || 512
|
||||
width: w,
|
||||
height: h
|
||||
});
|
||||
}
|
||||
updateCacheFormData({
|
||||
..._.pick(model?.meta, METAKEYS, {}),
|
||||
size: defaultSize,
|
||||
width: model?.meta?.default_width || 512,
|
||||
height: model?.meta?.default_height || 512
|
||||
width: w,
|
||||
height: h
|
||||
});
|
||||
},
|
||||
[modelList, isOpenaiCompatible]
|
||||
|
||||
@@ -600,8 +600,6 @@ const GroundImages: React.FC<MessageProps> = forwardRef((props, ref) => {
|
||||
|
||||
if (!isOpenaiCompatible) {
|
||||
setParams((pre: object) => {
|
||||
const w = model?.meta?.default_width || 512;
|
||||
const h = model?.meta?.default_height || 512;
|
||||
const obj = _.merge({}, pre, _.pick(model?.meta, METAKEYS, {}));
|
||||
|
||||
return { ...obj, size: defaultSize, width: w, height: h };
|
||||
@@ -609,15 +607,15 @@ const GroundImages: React.FC<MessageProps> = forwardRef((props, ref) => {
|
||||
form.current?.form?.setFieldsValue({
|
||||
..._.pick(model?.meta, METAKEYS, {}),
|
||||
size: defaultSize,
|
||||
width: model?.meta?.default_width || 512,
|
||||
height: model?.meta?.default_height || 512
|
||||
width: w,
|
||||
height: h
|
||||
});
|
||||
}
|
||||
updateCacheFormData({
|
||||
..._.pick(model?.meta, METAKEYS, {}),
|
||||
size: defaultSize,
|
||||
width: model?.meta?.default_width || 512,
|
||||
height: model?.meta?.default_height || 512
|
||||
width: w,
|
||||
height: h
|
||||
});
|
||||
},
|
||||
[modelList, isOpenaiCompatible]
|
||||
|
||||
@@ -146,23 +146,6 @@ export const ImageParamsConfig: ParamsSchema[] = [
|
||||
];
|
||||
|
||||
export const ImageEidtParamsConfig: ParamsSchema[] = [
|
||||
// {
|
||||
// type: 'Slider',
|
||||
// name: 'brush_size',
|
||||
// label: {
|
||||
// text: 'Brush Size',
|
||||
// isLocalized: false
|
||||
// },
|
||||
// attrs: {
|
||||
// min: 25,
|
||||
// max: 80
|
||||
// },
|
||||
// rules: [
|
||||
// {
|
||||
// required: false
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
type: 'InputNumber',
|
||||
name: 'n',
|
||||
@@ -337,29 +320,6 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'InputNumber',
|
||||
name: 'strength',
|
||||
label: {
|
||||
text: 'Strength',
|
||||
isLocalized: false
|
||||
},
|
||||
description: {
|
||||
text: 'playground.image.strength.tip',
|
||||
html: false,
|
||||
isLocalized: true
|
||||
},
|
||||
attrs: {
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.1
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
required: false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'InputNumber',
|
||||
name: 'cfg_scale',
|
||||
@@ -383,6 +343,29 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'InputNumber',
|
||||
name: 'strength',
|
||||
label: {
|
||||
text: 'Strength',
|
||||
isLocalized: false
|
||||
},
|
||||
description: {
|
||||
text: 'playground.image.strength.tip',
|
||||
html: false,
|
||||
isLocalized: true
|
||||
},
|
||||
attrs: {
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.1
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
required: false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'Input',
|
||||
name: 'negative_prompt', // e.g. ng_deepnegative_v1_75t,(badhandv4:1.2),EasyNegative,(worst quality:2),
|
||||
|
||||
Reference in New Issue
Block a user