Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
ff8d91aa
Commit
ff8d91aa
authored
Nov 01, 2020
by
vishnubanna
Browse files
debug value
parent
f1e8e671
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
official/vision/beta/projects/yolo/dataloaders/classification_input.py
...on/beta/projects/yolo/dataloaders/classification_input.py
+3
-0
official/vision/beta/tasks/image_classification.py
official/vision/beta/tasks/image_classification.py
+3
-0
No files found.
official/vision/beta/projects/yolo/dataloaders/classification_input.py
View file @
ff8d91aa
...
@@ -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
=
{
...
...
official/vision/beta/tasks/image_classification.py
View file @
ff8d91aa
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment