open-mmlab / mmpose

OpenMMLab Pose Estimation Toolbox and Benchmark.
https://mmpose.readthedocs.io/en/latest/
Apache License 2.0
5.8k stars 1.24k forks source link

RuntimeError: unable to mmap 136 bytes from file <filename not specified>: Cannot allocate memory (12) #2264

Closed darcula1993 closed 1 year ago

darcula1993 commented 1 year ago

I am trying to reproduce rtmpose result using lmdb backend but got error like: RuntimeError: unable to mmap 136 bytes from file : Cannot allocate memory (12)

the config file is here: test_rtm.zip

Any idea why this happen? Looks like it related to multi-processing.

LareinaM commented 1 year ago

@Tau-J Could you help on this issue relating to RTMPose?

Tau-J commented 1 year ago

file_client_args has been deprecated, could you pull the newest code and try again? BTW, we will report this issue to mmengine, thanks for your feedback.

darcula1993 commented 1 year ago
backend_args = dict(backend = 'lmdb',
                         db_path = "/lixinwei/mmpose/data/lmdb_pose/",
                         )

define this line like new config file,but got same error. Is there any tutorial or sample code show how to use lmdb in mmpose?

Tau-J commented 1 year ago

Sorry, we just directly integrate this api from mmengine.