We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fb3244 commit c605b07Copy full SHA for c605b07
torch_serve/image/handler.py
@@ -66,7 +66,7 @@ def initialize(self, ctx):
66
logger.debug(f"Model file {serialized_file} loaded successfully")
67
self.initialized = True
68
69
- @staticmethod
+ @staticmethod
70
def preprocess(data):
71
"""
72
Scales and normalizes a PIL image for an U-net model
@@ -131,7 +131,10 @@ def handle(data, context):
131
return None
132
133
data = _service.preprocess(data)
134
+ logger.info(f"preprocessed data: {data}")
135
data = _service.inference(data)
136
+ logger.info(f"infered data: {data}")
137
data = _service.postprocess(data)
138
+ logger.info(f"postprocessed data: {data}")
139
140
return data
0 commit comments