facebookresearch / detectron2

Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
https://detectron2.readthedocs.io/en/latest/
Apache License 2.0
30.56k stars 7.49k forks source link

inference on a frame sequence #1986

Open GeorgPopp opened 4 years ago

GeorgPopp commented 4 years ago

Hey there, I was trying to inference on a sequence of images with DensePose with the following code: !python ./apply_net.py show configs/densepose_rcnn_R_50_FPN_s1x.yaml https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl "frame*.jpg" dp_contour,bbox --output output_frame.png

but it seems that DensePose is not converting the right sequence of images so I would get a shuffled video which is useless. Any idea how to use this command to get the right output_frame sequence?

Thanks

cognitiveRobot commented 4 years ago

_get_input_file_list method giving you an unsorted list of files. if you sort that before inference, it should be ok.

GeorgPopp commented 4 years ago

Thanks this worked!

shilongshen commented 3 years ago

https://github.com/facebookresearch/detectron2/issues/1986#issuecomment-684119141 hi ! l meet the same problem, it is kind for you if you can tell me the details ,thanks!