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
0af12312
Commit
0af12312
authored
Mar 03, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 432320617
parent
71a6b899
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
official/vision/beta/projects/yolo/configs/yolo.py
official/vision/beta/projects/yolo/configs/yolo.py
+1
-0
official/vision/beta/projects/yolo/tasks/yolo.py
official/vision/beta/projects/yolo/tasks/yolo.py
+2
-1
No files found.
official/vision/beta/projects/yolo/configs/yolo.py
View file @
0af12312
...
...
@@ -129,6 +129,7 @@ class DataConfig(cfg.DataConfig):
tfds_download
:
bool
=
True
cache
:
bool
=
False
drop_remainder
:
bool
=
True
file_type
:
str
=
'tfrecord'
@
dataclasses
.
dataclass
...
...
official/vision/beta/projects/yolo/tasks/yolo.py
View file @
0af12312
...
...
@@ -20,6 +20,7 @@ from typing import Optional
from
absl
import
logging
import
tensorflow
as
tf
from
official.common
import
dataset_fn
from
official.core
import
base_task
from
official.core
import
config_definitions
from
official.core
import
input_reader
...
...
@@ -162,7 +163,7 @@ class YoloTask(base_task.Task):
# init the dataset reader
reader
=
input_reader
.
InputReader
(
params
,
dataset_fn
=
tf
.
data
.
TFRecordDataset
,
dataset_fn
=
dataset_fn
.
pick_dataset_fn
(
params
.
file_type
)
,
decoder_fn
=
decoder
.
decode
,
sample_fn
=
sample_fn
.
mosaic_fn
(
is_training
=
params
.
is_training
),
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