mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(config): fix bad compress_level setting
Tweak the name of it so that incoming configs with the old default value of 6 have the setting stripped out. The result is all configs will now have the new, much better default value of 1.
This commit is contained in:
parent
fbbf9c01b5
commit
1079bf3ccf
@ -93,7 +93,7 @@ class InvokeAIAppConfig(BaseSettings):
|
|||||||
attention_type: Attention type.
|
attention_type: Attention type.
|
||||||
attention_slice_size: Slice size, valid when attention_type=="sliced".
|
attention_slice_size: Slice size, valid when attention_type=="sliced".
|
||||||
force_tiled_decode: Whether to enable tiled VAE decode (reduces memory consumption with some performance penalty).
|
force_tiled_decode: Whether to enable tiled VAE decode (reduces memory consumption with some performance penalty).
|
||||||
png_compress_level: The compress_level setting of PIL.Image.save(), used for PNG encoding. All settings are lossless. 0 = no compression, 1 = fastest with slightly larger filesize, 9 = slowest with smallest filesize. 1 is typically the best setting.
|
pil_compress_level: The compress_level setting of PIL.Image.save(), used for PNG encoding. All settings are lossless. 0 = no compression, 1 = fastest with slightly larger filesize, 9 = slowest with smallest filesize. 1 is typically the best setting.
|
||||||
max_queue_size: Maximum number of items in the session queue.
|
max_queue_size: Maximum number of items in the session queue.
|
||||||
allow_nodes: List of nodes to allow. Omit to allow all.
|
allow_nodes: List of nodes to allow. Omit to allow all.
|
||||||
deny_nodes: List of nodes to deny. Omit to deny none.
|
deny_nodes: List of nodes to deny. Omit to deny none.
|
||||||
@ -160,7 +160,7 @@ class InvokeAIAppConfig(BaseSettings):
|
|||||||
attention_type: ATTENTION_TYPE = Field(default="auto", description="Attention type.")
|
attention_type: ATTENTION_TYPE = Field(default="auto", description="Attention type.")
|
||||||
attention_slice_size: ATTENTION_SLICE_SIZE = Field(default="auto", description='Slice size, valid when attention_type=="sliced".')
|
attention_slice_size: ATTENTION_SLICE_SIZE = Field(default="auto", description='Slice size, valid when attention_type=="sliced".')
|
||||||
force_tiled_decode: bool = Field(default=False, description="Whether to enable tiled VAE decode (reduces memory consumption with some performance penalty).")
|
force_tiled_decode: bool = Field(default=False, description="Whether to enable tiled VAE decode (reduces memory consumption with some performance penalty).")
|
||||||
png_compress_level: int = Field(default=1, description="The compress_level setting of PIL.Image.save(), used for PNG encoding. All settings are lossless. 0 = no compression, 1 = fastest with slightly larger filesize, 9 = slowest with smallest filesize. 1 is typically the best setting.")
|
pil_compress_level: int = Field(default=1, description="The compress_level setting of PIL.Image.save(), used for PNG encoding. All settings are lossless. 0 = no compression, 1 = fastest with slightly larger filesize, 9 = slowest with smallest filesize. 1 is typically the best setting.")
|
||||||
max_queue_size: int = Field(default=10000, gt=0, description="Maximum number of items in the session queue.")
|
max_queue_size: int = Field(default=10000, gt=0, description="Maximum number of items in the session queue.")
|
||||||
|
|
||||||
# NODES
|
# NODES
|
||||||
|
@ -82,7 +82,7 @@ class DiskImageFileStorage(ImageFileStorageBase):
|
|||||||
image_path,
|
image_path,
|
||||||
"PNG",
|
"PNG",
|
||||||
pnginfo=pnginfo,
|
pnginfo=pnginfo,
|
||||||
compress_level=self.__invoker.services.configuration.png_compress_level,
|
compress_level=self.__invoker.services.configuration.pil_compress_level,
|
||||||
)
|
)
|
||||||
|
|
||||||
thumbnail_name = get_thumbnail_name(image_name)
|
thumbnail_name = get_thumbnail_name(image_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user