[rename] - preprocess-batch -> preprocess, preprocess_preds -> postprocess (#42)
This commit is contained in:
parent
4c68b9dcf6
commit
d143ac666f
3 changed files with 7 additions and 7 deletions
|
|
@ -54,7 +54,7 @@ class BaseValidator:
|
|||
self.batch_i = batch_i
|
||||
# pre-process
|
||||
with dt[0]:
|
||||
batch = self.preprocess_batch(batch)
|
||||
batch = self.preprocess(batch)
|
||||
|
||||
# inference
|
||||
with dt[1]:
|
||||
|
|
@ -69,7 +69,7 @@ class BaseValidator:
|
|||
|
||||
# pre-process predictions
|
||||
with dt[3]:
|
||||
preds = self.preprocess_preds(preds)
|
||||
preds = self.postprocess(preds)
|
||||
|
||||
self.update_metrics(preds, batch)
|
||||
|
||||
|
|
@ -89,10 +89,10 @@ class BaseValidator:
|
|||
|
||||
return stats
|
||||
|
||||
def preprocess_batch(self, batch):
|
||||
def preprocess(self, batch):
|
||||
return batch
|
||||
|
||||
def preprocess_preds(self, preds):
|
||||
def postprocess(self, preds):
|
||||
return preds
|
||||
|
||||
def init_metrics(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue