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
d3569efc
Commit
d3569efc
authored
Jan 13, 2021
by
Rajagopal Ananthanarayanan
Committed by
A. Unique TensorFlower
Jan 13, 2021
Browse files
Internal change
PiperOrigin-RevId: 351691859
parent
1e52cf09
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
official/vision/beta/configs/image_classification.py
official/vision/beta/configs/image_classification.py
+1
-0
official/vision/beta/tasks/image_classification.py
official/vision/beta/tasks/image_classification.py
+2
-1
No files found.
official/vision/beta/configs/image_classification.py
View file @
d3569efc
...
...
@@ -35,6 +35,7 @@ class DataConfig(cfg.DataConfig):
shuffle_buffer_size
:
int
=
10000
cycle_length
:
int
=
10
aug_policy
:
Optional
[
str
]
=
None
# None, 'autoaug', or 'randaug'
file_type
:
str
=
'tfrecord'
# tfrecord, or sstable
@
dataclasses
.
dataclass
...
...
official/vision/beta/tasks/image_classification.py
View file @
d3569efc
...
...
@@ -22,6 +22,7 @@ from official.core import task_factory
from
official.modeling
import
tf_utils
from
official.vision.beta.configs
import
image_classification
as
exp_cfg
from
official.vision.beta.dataloaders
import
classification_input
from
official.vision.beta.dataloaders
import
dataset_fn
from
official.vision.beta.modeling
import
factory
...
...
@@ -86,7 +87,7 @@ class ImageClassificationTask(base_task.Task):
reader
=
input_reader
.
InputReader
(
params
,
dataset_fn
=
tf
.
data
.
TFRecordDataset
,
dataset_fn
=
dataset_fn
.
pick_dataset_fn
(
params
.
file_type
)
,
decoder_fn
=
decoder
.
decode
,
parser_fn
=
parser
.
parse_fn
(
params
.
is_training
))
...
...
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