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.11k stars 7.42k forks source link

TypeError: create_context() takes 2 positional arguments but 3 were given #2456

Open shilongshen opened 3 years ago

shilongshen commented 3 years ago

(densepose2) wag@wag-SYS-7049GP-TRT:/home/ssl/ssl/detectron2/projects/DensePose$ python apply_net.py dump configs/densepose_rcnn_R_50_FPN_s1x.yaml densepose_rcnn_R_50_FPN_s1x.pkl /home/ssl/ssl/dataset/Fashion-Video/image_frames/train/91-2Jb8DkfS/ --output train/91-2Jb8DkfSdump/dump.pkl -v fvcore version of PathManager will be deprecated soon. Please migrate to the version in iopath repo. https://github.com/facebookresearch/iopath

fvcore version of PathManager will be deprecated soon. Please migrate to the version in iopath repo. https://github.com/facebookresearch/iopath

[01/07 15:48:31 apply_net]: Loading config from configs/densepose_rcnn_R_50_FPN_s1x.yaml [01/07 15:48:31 apply_net]: Loading model from densepose_rcnn_R_50_FPN_s1x.pkl [01/07 15:48:38 apply_net]: Loading data from /home/ssl/ssl/dataset/Fashion-Video/image_frames/train/91-2Jb8DkfS/ Traceback (most recent call last): File "apply_net.py", line 350, in main() File "apply_net.py", line 346, in main args.func(args) File "apply_net.py", line 95, in execute context = cls.create_context(args, cfg) TypeError: create_context() takes 2 positional arguments but 3 were given

sangminwoo commented 3 years ago

Did you manage the issue below?

fvcore version of PathManager will be deprecated soon. Please migrate to the version in iopath repo. https://github.com/facebookresearch/iopath

patodichayan commented 3 years ago

(densepose2) wag@wag-SYS-7049GP-TRT:/home/ssl/ssl/detectron2/projects/DensePose$ python apply_net.py dump configs/densepose_rcnn_R_50_FPN_s1x.yaml densepose_rcnn_R_50_FPN_s1x.pkl /home/ssl/ssl/dataset/Fashion-Video/image_frames/train/91-2Jb8DkfS/ --output train/91-2Jb8DkfSdump/dump.pkl -v fvcore version of PathManager will be deprecated soon. Please migrate to the version in iopath repo. https://github.com/facebookresearch/iopath

fvcore version of PathManager will be deprecated soon. Please migrate to the version in iopath repo. https://github.com/facebookresearch/iopath

[01/07 15:48:31 apply_net]: Loading config from configs/densepose_rcnn_R_50_FPN_s1x.yaml [01/07 15:48:31 apply_net]: Loading model from densepose_rcnn_R_50_FPN_s1x.pkl [01/07 15:48:38 apply_net]: Loading data from /home/ssl/ssl/dataset/Fashion-Video/image_frames/train/91-2Jb8DkfS/ Traceback (most recent call last): File "apply_net.py", line 350, in main() File "apply_net.py", line 346, in main args.func(args) File "apply_net.py", line 95, in execute context = cls.create_context(args, cfg) TypeError: create_context() takes 2 positional arguments but 3 were given

change line 95 from "context = cls.create_context(args, cfg)" to context = cls.create_context(args)

vkhalidov commented 3 years ago

resolved by #2481