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
OpenDAS
mmdetection3d
Commits
a79f464e
Unverified
Commit
a79f464e
authored
Jan 10, 2021
by
congee
Committed by
GitHub
Jan 10, 2021
Browse files
remove the models with 0 ckpt (#259)
parent
d0068487
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
docs/stat.py
docs/stat.py
+5
-2
No files found.
docs/stat.py
View file @
a79f464e
...
...
@@ -18,10 +18,13 @@ for f in files:
content
=
content_file
.
read
()
title
=
content
.
split
(
'
\n
'
)[
0
].
replace
(
'#'
,
''
)
titles
.
append
(
title
)
ckpts
=
set
(
x
.
lower
().
strip
()
for
x
in
re
.
findall
(
r
'https?://download.*\.pth'
,
content
)
if
'mmdetection3d'
in
x
)
if
len
(
ckpts
)
==
0
:
continue
titles
.
append
(
title
)
num_ckpts
+=
len
(
ckpts
)
statsmsg
=
f
"""
\t
* [
{
title
}
](
{
url
}
) (
{
len
(
ckpts
)
}
ckpts)
...
...
@@ -33,7 +36,7 @@ msglist = '\n'.join(x for _, _, x in stats)
modelzoo
=
f
"""
\n
## Model Zoo Statistics
* Number of papers:
{
len
(
titles
)
}
* Number of papers:
{
len
(
set
(
titles
)
)
}
* Number of checkpoints:
{
num_ckpts
}
{
msglist
}
"""
...
...
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