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
wangsen
paddle_dbnet
Commits
3b1703e3
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "b0a2eb31ee2d4384502d52422fec18044347ce84"
Commit
3b1703e3
authored
Feb 04, 2021
by
WenmuZhou
Browse files
add dataset len check
parent
b9d3e8ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tools/train.py
tools/train.py
+1
-0
No files found.
tools/train.py
View file @
3b1703e3
...
@@ -54,6 +54,7 @@ def main(config, device, logger, vdl_writer):
...
@@ -54,6 +54,7 @@ def main(config, device, logger, vdl_writer):
logger
.
error
(
logger
.
error
(
'No Images in train dataset, please check annotation file and path in the configuration file'
'No Images in train dataset, please check annotation file and path in the configuration file'
)
)
return
if
config
[
'Eval'
]:
if
config
[
'Eval'
]:
valid_dataloader
=
build_dataloader
(
config
,
'Eval'
,
device
,
logger
)
valid_dataloader
=
build_dataloader
(
config
,
'Eval'
,
device
,
logger
)
...
...
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