mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(nodes): make ImageField attrs optional
This commit is contained in:
@@ -16,10 +16,10 @@ class ImageField(BaseModel):
|
||||
default=ImageType.RESULT, description="The type of the image"
|
||||
)
|
||||
image_name: Optional[str] = Field(default=None, description="The name of the image")
|
||||
width: int = Field(description="The width of the image in pixels")
|
||||
height: int = Field(description="The height of the image in pixels")
|
||||
mode: str = Field(description="The image mode (ie pixel format)")
|
||||
info: dict = Field(description="The image file's metadata")
|
||||
width: int = Field(default=None, description="The width of the image in pixels")
|
||||
height: int = Field(default=None, description="The height of the image in pixels")
|
||||
mode: str = Field(default=None, description="The image mode (ie pixel format)")
|
||||
info: dict = Field(default=None, description="The image file's metadata")
|
||||
|
||||
class Config:
|
||||
schema_extra = {
|
||||
|
||||
Reference in New Issue
Block a user