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
5276dfb4
Unverified
Commit
5276dfb4
authored
Jul 28, 2021
by
Wenhao Wu
Committed by
GitHub
Jul 28, 2021
Browse files
[Enhance] Modify resourse limit (#796)
parent
a56185ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mmdet3d/datasets/builder.py
mmdet3d/datasets/builder.py
+2
-1
No files found.
mmdet3d/datasets/builder.py
View file @
5276dfb4
...
@@ -8,8 +8,9 @@ if platform.system() != 'Windows':
...
@@ -8,8 +8,9 @@ if platform.system() != 'Windows':
# https://github.com/pytorch/pytorch/issues/973
# https://github.com/pytorch/pytorch/issues/973
import
resource
import
resource
rlimit
=
resource
.
getrlimit
(
resource
.
RLIMIT_NOFILE
)
rlimit
=
resource
.
getrlimit
(
resource
.
RLIMIT_NOFILE
)
base_soft_limit
=
rlimit
[
0
]
hard_limit
=
rlimit
[
1
]
hard_limit
=
rlimit
[
1
]
soft_limit
=
min
(
4096
,
hard_limit
)
soft_limit
=
min
(
max
(
4096
,
base_soft_limit
)
,
hard_limit
)
resource
.
setrlimit
(
resource
.
RLIMIT_NOFILE
,
(
soft_limit
,
hard_limit
))
resource
.
setrlimit
(
resource
.
RLIMIT_NOFILE
,
(
soft_limit
,
hard_limit
))
OBJECTSAMPLERS
=
Registry
(
'Object sampler'
)
OBJECTSAMPLERS
=
Registry
(
'Object sampler'
)
...
...
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