mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2025-01-09 04:18:46 +08:00
Rename default schedulers across the app
This commit is contained in:
parent
4b957edfec
commit
f7dc171c4f
@ -52,7 +52,7 @@ class TextToImageInvocation(BaseInvocation, SDImageInvocation):
|
|||||||
width: int = Field(default=512, multiple_of=8, gt=0, description="The width of the resulting image", )
|
width: int = Field(default=512, multiple_of=8, gt=0, description="The width of the resulting image", )
|
||||||
height: int = Field(default=512, multiple_of=8, gt=0, description="The height of the resulting image", )
|
height: int = Field(default=512, multiple_of=8, gt=0, description="The height of the resulting image", )
|
||||||
cfg_scale: float = Field(default=7.5, ge=1, description="The Classifier-Free Guidance, higher values may result in a result closer to the prompt", )
|
cfg_scale: float = Field(default=7.5, ge=1, description="The Classifier-Free Guidance, higher values may result in a result closer to the prompt", )
|
||||||
scheduler: SAMPLER_NAME_VALUES = Field(default="k_lms", description="The scheduler to use" )
|
scheduler: SAMPLER_NAME_VALUES = Field(default="lms", description="The scheduler to use" )
|
||||||
model: str = Field(default="", description="The model to use (currently ignored)")
|
model: str = Field(default="", description="The model to use (currently ignored)")
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ class TextToLatentsInvocation(BaseInvocation):
|
|||||||
noise: Optional[LatentsField] = Field(description="The noise to use")
|
noise: Optional[LatentsField] = Field(description="The noise to use")
|
||||||
steps: int = Field(default=10, gt=0, description="The number of steps to use to generate the image")
|
steps: int = Field(default=10, gt=0, description="The number of steps to use to generate the image")
|
||||||
cfg_scale: float = Field(default=7.5, gt=0, description="The Classifier-Free Guidance, higher values may result in a result closer to the prompt", )
|
cfg_scale: float = Field(default=7.5, gt=0, description="The Classifier-Free Guidance, higher values may result in a result closer to the prompt", )
|
||||||
scheduler: SAMPLER_NAME_VALUES = Field(default="k_lms", description="The scheduler to use" )
|
scheduler: SAMPLER_NAME_VALUES = Field(default="lms", description="The scheduler to use" )
|
||||||
model: str = Field(default="", description="The model to use (currently ignored)")
|
model: str = Field(default="", description="The model to use (currently ignored)")
|
||||||
seamless: bool = Field(default=False, description="Whether or not to generate an image that can tile without seams", )
|
seamless: bool = Field(default=False, description="Whether or not to generate an image that can tile without seams", )
|
||||||
seamless_axes: str = Field(default="", description="The axes to tile the image on, 'x' and/or 'y'")
|
seamless_axes: str = Field(default="", description="The axes to tile the image on, 'x' and/or 'y'")
|
||||||
|
@ -634,7 +634,7 @@ class Args(object):
|
|||||||
choices=SAMPLER_CHOICES,
|
choices=SAMPLER_CHOICES,
|
||||||
metavar="SAMPLER_NAME",
|
metavar="SAMPLER_NAME",
|
||||||
help=f'Set the default sampler. Supported samplers: {", ".join(SAMPLER_CHOICES)}',
|
help=f'Set the default sampler. Supported samplers: {", ".join(SAMPLER_CHOICES)}',
|
||||||
default="k_lms",
|
default="lms",
|
||||||
)
|
)
|
||||||
render_group.add_argument(
|
render_group.add_argument(
|
||||||
"--log_tokenization",
|
"--log_tokenization",
|
||||||
|
@ -142,7 +142,7 @@ class Generate:
|
|||||||
model=None,
|
model=None,
|
||||||
conf="configs/models.yaml",
|
conf="configs/models.yaml",
|
||||||
embedding_path=None,
|
embedding_path=None,
|
||||||
sampler_name="k_lms",
|
sampler_name="lms",
|
||||||
ddim_eta=0.0, # deterministic
|
ddim_eta=0.0, # deterministic
|
||||||
full_precision=False,
|
full_precision=False,
|
||||||
precision="auto",
|
precision="auto",
|
||||||
|
@ -20,7 +20,7 @@ export const iterationGraph = {
|
|||||||
model: '',
|
model: '',
|
||||||
progress_images: false,
|
progress_images: false,
|
||||||
prompt: 'dog',
|
prompt: 'dog',
|
||||||
sampler_name: 'k_lms',
|
sampler_name: 'lms',
|
||||||
seamless: false,
|
seamless: false,
|
||||||
steps: 11,
|
steps: 11,
|
||||||
type: 'txt2img',
|
type: 'txt2img',
|
||||||
|
@ -51,7 +51,7 @@ export const initialGenerationState: GenerationState = {
|
|||||||
perlin: 0,
|
perlin: 0,
|
||||||
prompt: '',
|
prompt: '',
|
||||||
negativePrompt: '',
|
negativePrompt: '',
|
||||||
sampler: 'k_lms',
|
sampler: 'lms',
|
||||||
seamBlur: 16,
|
seamBlur: 16,
|
||||||
seamSize: 96,
|
seamSize: 96,
|
||||||
seamSteps: 30,
|
seamSteps: 30,
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
],
|
],
|
||||||
"threshold": 0,
|
"threshold": 0,
|
||||||
"postprocessing": null,
|
"postprocessing": null,
|
||||||
"sampler": "k_lms",
|
"sampler": "lms",
|
||||||
"variations": [],
|
"variations": [],
|
||||||
"type": "txt2img"
|
"type": "txt2img"
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ valid_metadata = {
|
|||||||
"width": 512,
|
"width": 512,
|
||||||
"height": 512,
|
"height": 512,
|
||||||
"cfg_scale": 7.5,
|
"cfg_scale": 7.5,
|
||||||
"scheduler": "k_lms",
|
"scheduler": "lms",
|
||||||
"model": "stable-diffusion-1.5",
|
"model": "stable-diffusion-1.5",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user