AlphaPose icon indicating copy to clipboard operation
AlphaPose copied to clipboard

Perform a inference with pretrained model but stuck in processing and loop semaphore_tracker warning after loading model, anyone has idea what's going on?

Open yang074 opened this issue 4 years ago • 5 comments

(pytorch_gpu) [stu3@gpu7 AlphaPose-master]$ python scripts/demo_inference.py --cfg configs/coco/resnet/256x192_res50_lr1e-3_1x.yaml --checkpoint pretrained_models/fast_res50_256x192.pth --indir data/input/03_0032 --outdir data/output --gpus 1 Loading YOLO model.. Loading pose model from pretrained_models/fast_res50_256x192.pth... Network successfully loaded 0%| | 0/409 [00:00<?, ?it/s] /public/home/stu3/anaconda3/envs/pytorch_gpu/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown len(cache)) /public/home/stu/anaconda3/envs/pytorch_gpu/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown len(cache))

yang074 avatar Jun 18 '20 06:06 yang074

Hi, can you see if this help: https://discuss.pytorch.org/t/issue-with-multiprocessing-semaphore-tracking/22943/6 ?

Fang-Haoshu avatar Jun 18 '20 06:06 Fang-Haoshu

Thks, I had seen this help before, and I tried to:

  1. wrapped the codes which in demo_inference.py inside if name == "main": but still had the problem;
  2. cmd with -W ignore and this had no warning,but still stuck in processing

yang074 avatar Jun 18 '20 06:06 yang074

It's pretty weird. Does enable --sp flag help?

Fang-Haoshu avatar Jun 18 '20 09:06 Fang-Haoshu

I run into this on my jetson nano 4GB.

wu-yue-yu avatar Nov 14 '21 01:11 wu-yue-yu

I am too getting this error. @yang074 did you find any solution?

atpug22 avatar Jun 02 '22 04:06 atpug22