Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions keras_cv/bounding_box/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,15 +370,16 @@ def convert_format(
`"float32"`.
"""
if isinstance(boxes, dict):
boxes["boxes"] = convert_format(
converted_boxes = boxes.copy()
converted_boxes["boxes"] = convert_format(
boxes["boxes"],
source=source,
target=target,
images=images,
image_shape=image_shape,
dtype=dtype,
)
return boxes
return converted_boxes

if boxes.shape[-1] is not None and boxes.shape[-1] != 4:
raise ValueError(
Expand Down