mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-09 15:05:26 +03:00
Compare commits
No commits in common. "a242c31b9e12875b262211ef982dcc2ed75a4bf6" and "138eaf4daa108d3e111a241ad5013fdb9f9c1388" have entirely different histories.
a242c31b9e
...
138eaf4daa
@ -227,9 +227,6 @@ class CustomStateClassificationProcessor(RealTimeProcessorApi):
|
|||||||
self.tensor_output_details[0]["index"]
|
self.tensor_output_details[0]["index"]
|
||||||
)[0]
|
)[0]
|
||||||
probs = res / res.sum(axis=0)
|
probs = res / res.sum(axis=0)
|
||||||
logger.debug(
|
|
||||||
f"{self.model_config.name} Ran state classification with probabilities: {probs}"
|
|
||||||
)
|
|
||||||
best_id = np.argmax(probs)
|
best_id = np.argmax(probs)
|
||||||
score = round(probs[best_id], 2)
|
score = round(probs[best_id], 2)
|
||||||
self.__update_metrics(datetime.datetime.now().timestamp() - now)
|
self.__update_metrics(datetime.datetime.now().timestamp() - now)
|
||||||
@ -458,9 +455,6 @@ class CustomObjectClassificationProcessor(RealTimeProcessorApi):
|
|||||||
self.tensor_output_details[0]["index"]
|
self.tensor_output_details[0]["index"]
|
||||||
)[0]
|
)[0]
|
||||||
probs = res / res.sum(axis=0)
|
probs = res / res.sum(axis=0)
|
||||||
logger.debug(
|
|
||||||
f"{self.model_config.name} Ran object classification with probabilities: {probs}"
|
|
||||||
)
|
|
||||||
best_id = np.argmax(probs)
|
best_id = np.argmax(probs)
|
||||||
score = round(probs[best_id], 2)
|
score = round(probs[best_id], 2)
|
||||||
self.__update_metrics(datetime.datetime.now().timestamp() - now)
|
self.__update_metrics(datetime.datetime.now().timestamp() - now)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user