kevinhkhsu / DA_detection

Progressive Domain Adaptation for Object Detection
MIT License
104 stars 18 forks source link

module 'layer_utils.roi_align._ext.crop_and_resize' has no attribute 'crop_and_resize_gpu_forward' #31

Open tilahun12 opened 2 years ago

tilahun12 commented 2 years ago

Please hep How can i fix this error. Traceback (most recent call last): File "./tools/trainval_net_adapt.py", line 147, in pretrained_model=args.weight,max_iters=args.max_iters) File "/home/cv-lab/DA_detection/tools/../lib/model/train_val_adapt.py", line 396, in train_net sw.train_model(max_iters) File "/home/cv-lab/DA_detection/tools/../lib/model/train_val_adapt.py", line 304, in train_model self.net.train_adapt_step_img(blobs, blobsT, self.optimizer, self.D_img_op, synth_weight) File "/home/cv-lab/DA_detection/tools/../lib/nets/network.py", line 820, in train_adapt_step_img fc7, net_conv = self.forward(blobs_S['data'], blobs_S['im_info'], blobs_S['gt_boxes']) File "/home/cv-lab/DA_detection/tools/../lib/nets/network.py", line 736, in forward rois, cls_prob, bbox_pred, net_conv, fc7 = self._predict() File "/home/cv-lab/DA_detection/tools/../lib/nets/network.py", line 697, in _predict pool5 = self._crop_pool_layer(net_conv, rois) File "/home/cv-lab/DA_detection/tools/../lib/nets/network.py", line 183, in _crop_pool_layer torch.cat([y1/(height-1),x1/(width-1),y2/(height-1),x2/(width-1)], 1), rois[:, 0].int()) File "/home/cv-lab/DA_detection/tools/../lib/layer_utils/roi_align/crop_and_resize.py", line 21, in forward _backend.crop_and_resize_gpu_forward( AttributeError: module 'layer_utils.roi_align._ext.crop_and_resize' has no attribute 'crop_and_resize_gpu_forward' Command exited with non-zero status 1