Commit 3bee8403 authored by Vishnu Banna's avatar Vishnu Banna
Browse files

detection_generator update

parent ad3427f9
...@@ -104,7 +104,7 @@ class Yolo(tf.keras.Model): ...@@ -104,7 +104,7 @@ class Yolo(tf.keras.Model):
self._backbone = backbone self._backbone = backbone
self._decoder = decoder self._decoder = decoder
self._head = head self._head = head
self._filter = detection_generator self._detection_generator = detection_generator
return return
def call(self, inputs, training=False): def call(self, inputs, training=False):
...@@ -115,7 +115,7 @@ class Yolo(tf.keras.Model): ...@@ -115,7 +115,7 @@ class Yolo(tf.keras.Model):
return {"raw_output": raw_predictions} return {"raw_output": raw_predictions}
else: else:
# Post-processing. # Post-processing.
predictions = self._filter(raw_predictions) predictions = self._detection_generator(raw_predictions)
predictions.update({"raw_output": raw_predictions}) predictions.update({"raw_output": raw_predictions})
return predictions return predictions
...@@ -132,8 +132,8 @@ class Yolo(tf.keras.Model): ...@@ -132,8 +132,8 @@ class Yolo(tf.keras.Model):
return self._head return self._head
@property @property
def filter(self): def detection_generator(self):
return self._filter return self._detection_generator
def get_config(self): def get_config(self):
return self._config_dict return self._config_dict
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment