mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Add commented code to increase open file limit via Python (for TFDS dataset building)
This commit is contained in:
parent
f7d210d759
commit
55adfbeb8d
@ -22,6 +22,10 @@ try:
|
||||
print("Warning: This version of tfds doesn't have the latest even_splits impl. "
|
||||
"Please update or use tfds-nightly for better fine-grained split behaviour.")
|
||||
has_buggy_even_splits = True
|
||||
# NOTE uncomment below if having file limit issues on dataset build (or alter your OS defaults)
|
||||
# import resource
|
||||
# low, high = resource.getrlimit(resource.RLIMIT_NOFILE)
|
||||
# resource.setrlimit(resource.RLIMIT_NOFILE, (high, high))
|
||||
except ImportError as e:
|
||||
print(e)
|
||||
print("Please install tensorflow_datasets package `pip install tensorflow-datasets`.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user