Skip to content

Commit

Permalink
fix model None error (#2176)
Browse files Browse the repository at this point in the history
* Update pycoco_callback.py

* Update waymo_evaluation_callback.py
  • Loading branch information
divyashreepathihalli authored Nov 21, 2023
1 parent 474d070 commit 446cf35
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion keras_cv/callbacks/pycoco_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def __init__(
operations and passing `cache=False`.
"""
assert_pycocotools_installed("PyCOCOCallback")
self.model = None
self.val_data = validation_data
if cache:
# We cache the dataset to preserve a consistent iteration order.
Expand Down
1 change: 0 additions & 1 deletion keras_cv/callbacks/waymo_evaluation_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def __init__(self, validation_data, config=None, **kwargs):
assert_waymo_open_dataset_installed(
"keras_cv.callbacks.WaymoEvaluationCallback()"
)
self.model = None
self.val_data = validation_data
self.evaluator = WODDetectionEvaluator(
config=config or self._get_default_config()
Expand Down

0 comments on commit 446cf35

Please sign in to comment.