Skip to content

Commit f09c896

Browse files
author
Divyashree Sreepathihalli
committed
Merge remote-tracking branch 'upstream/master' into r0.8
2 parents 677c7bc + d7147ba commit f09c896

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

Diff for: keras_cv/datasets/pascal_voc/segmentation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class and instance segmentation masks.
5858
booktitle = "International Conference on Computer Vision (ICCV)",
5959
year = "2011"}}
6060
""" # noqa: E501
61-
SBD_URL = "https://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/semantic_contours/benchmark.tgz" # noqa: E501
61+
SBD_URL = "https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/semantic_contours/benchmark.tgz" # noqa: E501
6262

6363

6464
# Note that this list doesn't contain the background class. In the

Diff for: keras_cv/layers/serialization_test.py

+8
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,14 @@ class SerializationTest(TestCase):
377377
"from_logits": True,
378378
},
379379
),
380+
(
381+
"NonMaxSuppression",
382+
cv_layers.NonMaxSuppression,
383+
{
384+
"bounding_box_format": "yxyx",
385+
"from_logits": True,
386+
},
387+
),
380388
)
381389
def test_layer_serialization(self, layer_cls, init_args):
382390
# TODO: Some layers are not yet compatible with Keras 3.

Diff for: keras_cv/models/object_detection/yolo_v8/yolo_v8_detector.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -655,12 +655,14 @@ def from_config(cls, config):
655655
config["backbone"]
656656
)
657657
label_encoder = config.get("label_encoder")
658-
if label_encoder is not None:
658+
if label_encoder is not None and isinstance(label_encoder, dict):
659659
config["label_encoder"] = keras.saving.deserialize_keras_object(
660660
label_encoder
661661
)
662662
prediction_decoder = config.get("prediction_decoder")
663-
if prediction_decoder is not None:
663+
if prediction_decoder is not None and isinstance(
664+
prediction_decoder, dict
665+
):
664666
config[
665667
"prediction_decoder"
666668
] = keras.saving.deserialize_keras_object(prediction_decoder)

0 commit comments

Comments
 (0)