Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
medai
software
mednet
Commits
bdd78673
Commit
bdd78673
authored
8 months ago
by
Daniel CARRON
Committed by
André Anjos
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[common.database] Hotfix for database check command
parent
7e66943c
No related branches found
No related tags found
1 merge request
!46
Create common library
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mednet/libs/common/scripts/database.py
+10
-4
10 additions, 4 deletions
src/mednet/libs/common/scripts/database.py
with
10 additions
and
4 deletions
src/mednet/libs/common/scripts/database.py
+
10
−
4
View file @
bdd78673
...
@@ -75,10 +75,16 @@ def check(entry_point_group, fold, limit): # numpydoc ignore=PR01
...
@@ -75,10 +75,16 @@ def check(entry_point_group, fold, limit): # numpydoc ignore=PR01
for
i
,
batch
in
enumerate
(
loader
):
for
i
,
batch
in
enumerate
(
loader
):
if
loader_limit
==
0
:
if
loader_limit
==
0
:
break
break
logger
.
info
(
if
isinstance
(
batch
[
0
],
dict
):
f
"
{
batch
[
1
][
'
name
'
][
0
]
}
:
"
logger
.
info
(
f
"
{
[
s
for
s
in
batch
[
0
][
0
].
shape
]
}
@
{
batch
[
0
][
0
].
dtype
}
"
,
f
"
{
batch
[
1
][
'
name
'
][
0
]
}
:
"
)
f
"
{
[
s
for
s
in
batch
[
0
][
'
image
'
][
0
].
shape
]
}
@
{
batch
[
0
][
'
image
'
][
0
].
dtype
}
"
,
)
else
:
logger
.
info
(
f
"
{
batch
[
1
][
'
name
'
][
0
]
}
:
"
f
"
{
[
s
for
s
in
batch
[
0
][
0
].
shape
]
}
@
{
batch
[
0
][
0
].
dtype
}
"
,
)
loader_limit
-=
1
loader_limit
-=
1
except
Exception
:
except
Exception
:
logger
.
exception
(
f
"
Unable to load batch
{
i
}
in dataset
{
k
}
"
)
logger
.
exception
(
f
"
Unable to load batch
{
i
}
in dataset
{
k
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment