File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
invokeai/backend/image_util/segment_anything Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
7
7
class BoundingBox (BaseModel ):
8
- x_min : int = Field (ge = 0 , description = "The minimum x-coordinate of the bounding box (inclusive)." )
9
- x_max : int = Field (ge = 0 , description = "The maximum x-coordinate of the bounding box (exclusive)." )
10
- y_min : int = Field (ge = 0 , description = "The minimum y-coordinate of the bounding box (inclusive)." )
11
- y_max : int = Field (ge = 0 , description = "The maximum y-coordinate of the bounding box (exclusive)." )
8
+ x_min : int = Field (... , description = "The minimum x-coordinate of the bounding box (inclusive)." )
9
+ x_max : int = Field (... , description = "The maximum x-coordinate of the bounding box (exclusive)." )
10
+ y_min : int = Field (... , description = "The minimum y-coordinate of the bounding box (inclusive)." )
11
+ y_max : int = Field (... , description = "The maximum y-coordinate of the bounding box (exclusive)." )
12
12
13
13
@model_validator (mode = "after" )
14
14
def check_coords (self ):
You can’t perform that action at this time.
0 commit comments