Closed judycpChen closed 5 months ago
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
master branch https://github.com/open-mmlab/mmdetection
fatal: Not a git repository (or any of the parent directories): .git sys.platform: win32 Python: 3.8.0 (default, Nov 6 2019, 16:00:02) [MSC v.1916 64 bit (AMD64)] CUDA available: True GPU 0,1,2,3,4,5: Tesla P40 CUDA_HOME: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3 NVCC: Cuda compilation tools, release 11.3, V11.3.58 MSVC: 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.16.27051 版 GCC: n/a PyTorch: 1.10.1+cu113 PyTorch compiling details: PyTorch built with:
TorchVision: 0.11.2+cu113 OpenCV: 4.9.0 MMCV: 1.7.2 MMCV Compiler: MSVC 191627051 MMCV CUDA Compiler: 11.3 MMDetection: 2.26.0+
def _update_iq_score_info(self, cat_id, cur_gt_roi_feat): cur_gt_roi_feat = cur_gt_roi_feat.view(-1, 256, 7, 7)
device_dir = str(cur_gt_roi_feat.device.index) cur_gt_save_pth = os.path.join( self.con_queue_dir, device_dir, str(cat_id) + '.pt') if os.path.exists(cur_gt_save_pth): # print("before:"+cur_gt_save_pth) cur_pt = torch.load(cur_gt_save_pth).view(-1, 256, 7, 7) os.remove(cur_gt_save_pth) # print("now:"+cur_gt_save_pth) cur_gt_roi_feat = torch.cat( [cur_pt.to(cur_gt_roi_feat.device), cur_gt_roi_feat], dim=0) cur_gt_roi_feat = cur_gt_roi_feat.view(-1, 256, 7, 7) dup_len = cur_gt_roi_feat.size(0) > int(self.num_con_queue // self.num_gpus) if dup_len > 0: cur_gt_roi_feat = cur_gt_roi_feat[-dup_len, ...] print("now:"+cur_gt_save_pth) torch.save( cur_gt_roi_feat, cur_gt_save_pth, _use_new_zipfile_serialization=False)
python -m torch.distributed.launch --nproc_per_node=6 --master_port=29500 train.py --config ../configs/cfinet/faster_rcnn_r50_fpn_cfinet_1x.py --launcher pytorch
FileNotFoundError: [Errno 2] No such file or directory: './work_dirs/roi_feats/cfinet\1\5.pt'
No response
Prerequisite
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
master branch https://github.com/open-mmlab/mmdetection
Environment
fatal: Not a git repository (or any of the parent directories): .git sys.platform: win32 Python: 3.8.0 (default, Nov 6 2019, 16:00:02) [MSC v.1916 64 bit (AMD64)] CUDA available: True GPU 0,1,2,3,4,5: Tesla P40 CUDA_HOME: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3
NVCC: Cuda compilation tools, release 11.3, V11.3.58 MSVC: 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.16.27051 版 GCC: n/a PyTorch: 1.10.1+cu113 PyTorch compiling details: PyTorch built with:
TorchVision: 0.11.2+cu113 OpenCV: 4.9.0 MMCV: 1.7.2 MMCV Compiler: MSVC 191627051 MMCV CUDA Compiler: 11.3 MMDetection: 2.26.0+
Reproduces the problem - code sample
def _update_iq_score_info(self, cat_id, cur_gt_roi_feat): cur_gt_roi_feat = cur_gt_roi_feat.view(-1, 256, 7, 7)
update the iq_score queue and corresponding dict info
Reproduces the problem - command or script
python -m torch.distributed.launch --nproc_per_node=6 --master_port=29500 train.py --config ../configs/cfinet/faster_rcnn_r50_fpn_cfinet_1x.py --launcher pytorch
Reproduces the problem - error message
FileNotFoundError: [Errno 2] No such file or directory: './work_dirs/roi_feats/cfinet\1\5.pt'
Additional information
No response