facebookresearch / unbiased-teacher

PyTorch code for ICLR 2021 paper Unbiased Teacher for Semi-Supervised Object Detection
https://arxiv.org/abs/2102.09480
MIT License
410 stars 82 forks source link

TypeError: _get_local_path() got an unexpected keyword argument 'force' #9

Open zhangnan-hust opened 3 years ago

zhangnan-hust commented 3 years ago

Traceback (most recent call last): File "/home/zhangkai/zhangnan/semi-supervised/unbiased-teacher-main/train_net.py", line 80, in args=(args,), File "/home/zhangkai/anaconda3/envs/detectron2/lib/python3.6/site-packages/detectron2/engine/launch.py", line 62, in launch main_func(*args) File "/home/zhangkai/zhangnan/semi-supervised/unbiased-teacher-main/train_net.py", line 63, in main trainer.resume_or_load(resume=args.resume) File "/home/zhangkai/anaconda3/envs/detectron2/lib/python3.6/site-packages/detectron2/engine/defaults.py", line 353, in resume_or_load checkpoint = self.checkpointer.resume_or_load(self.cfg.MODEL.WEIGHTS, resume=resume) File "/home/zhangkai/anaconda3/envs/detectron2/lib/python3.6/site-packages/fvcore/common/checkpoint.py", line 215, in resume_or_load return self.load(path, checkpointables=[]) File "/home/zhangkai/anaconda3/envs/detectron2/lib/python3.6/site-packages/fvcore/common/checkpoint.py", line 140, in load path = self.path_manager.get_local_path(path) File "/home/zhangkai/anaconda3/envs/detectron2/lib/python3.6/site-packages/iopath/common/file_io.py", line 1100, in get_local_path path, force=force, **kwargs TypeError: _get_local_path() got an unexpected keyword argument 'force'

Process finished with exit code 1


sys.platform linux Python 3.6.13 Anaconda, Inc. (default, Feb 23 2021, 21:15:04) [GCC 7.3.0] numpy 1.19.2 detectron2 0.4 @/home/zhangkai/anaconda3/envs/detectron2/lib/python3.6/site-packages/detectron2 Compiler GCC 7.3 CUDA compiler CUDA 10.1 detectron2 arch flags 3.7, 5.0, 5.2, 6.0, 6.1, 7.0, 7.5 DETECTRON2_ENV_MODULE PyTorch 1.8.1 @/home/zhangkai/anaconda3/envs/detectron2/lib/python3.6/site-packages/torch PyTorch debug build False GPU available True GPU 0 GeForce GTX 1080 (arch=6.1) GPU 1 Quadro M4000 (arch=5.2) CUDA_HOME /usr/local/cuda-10.0 Pillow 8.2.0 torchvision 0.9.1 @/home/zhangkai/anaconda3/envs/detectron2/lib/python3.6/site-packages/torchvision torchvision arch flags 3.5, 5.0, 6.0, 7.0, 7.5 fvcore 0.1.3.post20210317 cv2 4.5.1

PyTorch built with:

I create the environment and run the code by readme but get this error. What is the problem?