Commit ff8d91aa authored by vishnubanna's avatar vishnubanna
Browse files

debug value

parent f1e8e671
...@@ -26,6 +26,9 @@ STDDEV_RGB = (0.229 * 255, 0.224 * 255, 0.225 * 255) ...@@ -26,6 +26,9 @@ STDDEV_RGB = (0.229 * 255, 0.224 * 255, 0.225 * 255)
class Decoder(decoder.Decoder): class Decoder(decoder.Decoder):
"""A tf.Example decoder for classification task.""" """A tf.Example decoder for classification task."""
def __init__(self):
print("decoder ahs been init")
return
def decode(self, serialized_example): def decode(self, serialized_example):
sample_dict = { sample_dict = {
......
...@@ -54,9 +54,12 @@ class ImageClassificationTask(base_task.Task): ...@@ -54,9 +54,12 @@ class ImageClassificationTask(base_task.Task):
input_size = self.task_config.model.input_size input_size = self.task_config.model.input_size
if params.tfds_name != None: if params.tfds_name != None:
print("i am here for training using tfds")
decoder = cli.Decoder() decoder = cli.Decoder()
else: else:
print("i am here for regular input")
decoder = classification_input.Decoder() decoder = classification_input.Decoder()
parser = classification_input.Parser( parser = classification_input.Parser(
output_size=input_size[:2], output_size=input_size[:2],
num_classes=num_classes, num_classes=num_classes,
......
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