...
This commit is contained in:
parent
5c23898280
commit
613bba8cfc
@ -30,5 +30,5 @@ class Classifier:
|
||||
return list(self.__pipe(batch))
|
||||
|
||||
def __call__(self, batch: np.array) -> List[str]:
|
||||
logger.debug("Classifier.predicting")
|
||||
logger.debug("Classifier.predict")
|
||||
return self.predict(batch)
|
||||
|
||||
@ -2,8 +2,7 @@ from image_prediction.formatter.formatters.key_formatter import KeyFormatter
|
||||
|
||||
|
||||
class Snake2CamelCaseKeyFormatter(KeyFormatter):
|
||||
@staticmethod
|
||||
def format_key(key):
|
||||
def format_key(self, key):
|
||||
|
||||
if isinstance(key, str):
|
||||
head, *tail = key.split("_")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user