Skip to content

Commit

Permalink
chore: image args update
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Dec 24, 2024
1 parent bafbb39 commit e74cda3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/pages/playground/components/ground-images.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ interface MessageProps {
}
const advancedFieldsDefaultValus = {
seed: null,
sampler: 'euler_a',
sample_method: 'euler_a',
cfg_scale: 4.5,
sample_steps: 10,
sampling_steps: 10,
negative_prompt: null,
schedule: 'discrete'
schedule_method: 'discrete'
};

const openaiCompatibleFieldsDefaultValus = {
Expand Down
6 changes: 3 additions & 3 deletions src/pages/playground/config/params-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const ImageconstExtraConfig: ParamsSchema[] = [
export const ImageAdvancedParamsConfig: ParamsSchema[] = [
{
type: 'Select',
name: 'sampler',
name: 'sample_method',
options: [
{ label: 'euler_a', value: 'euler_a' },
{ label: 'euler', value: 'euler' },
Expand All @@ -200,7 +200,7 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
},
{
type: 'Select',
name: 'schedule',
name: 'schedule_method',
options: [
{ label: 'discrete', value: 'discrete' },
{ label: 'karras', value: 'karras' },
Expand All @@ -220,7 +220,7 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
},
{
type: 'InputNumber',
name: 'sample_steps',
name: 'sampling_steps',
label: {
text: 'playground.image.params.samplerSteps',
isLocalized: true
Expand Down

0 comments on commit e74cda3

Please sign in to comment.