PreciseRoIPooling icon indicating copy to clipboard operation
PreciseRoIPooling copied to clipboard

RuntimeError: Error building extension '_prroi_pooling'

Open imMid-Star opened this issue 3 years ago • 0 comments

QObject::moveToThread: Current thread (0x55b1f3bc1be0) is not the object's thread (0x55b1f1c93e70). Cannot move to target thread (0x55b1f3bc1be0)

QObject::moveToThread: Current thread (0x55b1f3bc1be0) is not the object's thread (0x55b1f1c93e70). Cannot move to target thread (0x55b1f3bc1be0)

Select a ROI and then press SPACE or ENTER button! Cancel the selection process by pressing c button! /home/dell10/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/nn/functional.py:2506: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details. "See the documentation of nn.Upsample for details.".format(mode)) Using /tmp/torch_extensions as PyTorch extensions root... Detected CUDA files, patching ldflags Emitting ninja build file /tmp/torch_extensions/_prroi_pooling/build.ninja... Building extension module _prroi_pooling... ninja: invalid option -- 'e' usage: ninja [options] [targets...]

if targets are unspecified, builds the 'default' target (see manual).

options: --version print ninja version ("1.9.0") -v, --verbose show all command lines while building

-C DIR change to DIR before doing anything else -f FILE specify input build file [default=build.ninja]

-j N run N jobs in parallel (0 means infinity) [default=50 on this system] -k N keep going until N jobs fail (0 means infinity) [default=1] -l N do not start new jobs if the load average is greater than N -n dry run (don't run commands but act like they succeeded)

-d MODE enable debugging (use '-d list' to list modes) -t TOOL run a subtool (use '-t list' to list subtools) terminates toplevel options; further flags are passed to the tool -w FLAG adjust warnings (use '-w list' to list warnings) Traceback (most recent call last): File "/home/dell10/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1066, in _build_extension_module check=True) File "/home/dell10/anaconda3/envs/pytracking/lib/python3.7/subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-version']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/1/dl_pzx/pytracking/pytracking/run_video.py", line 38, in main() File "/1/dl_pzx/pytracking/pytracking/run_video.py", line 34, in main run_video(args.tracker_name, args.tracker_param,args.videofile, args.optional_box, args.debug, args.save_results) File "/1/dl_pzx/pytracking/pytracking/run_video.py", line 20, in run_video tracker.run_video(videofilepath=videofile, optional_box=optional_box, debug=debug, save_results=save_results) File "/1/dl_pzx/pytracking/pytracking/../pytracking/evaluation/tracker.py", line 298, in run_video tracker.initialize(frame, _build_init_info(init_state)) File "/1/dl_pzx/pytracking/pytracking/../pytracking/evaluation/multi_object_wrapper.py", line 117, in initialize out = self.trackers[obj_id].initialize(image, init_info_split[obj_id]) File "/1/dl_pzx/pytracking/pytracking/../pytracking/tracker/atom/atom.py", line 115, in initialize self.init_iou_net() File "/1/dl_pzx/pytracking/pytracking/../pytracking/tracker/atom/atom.py", line 694, in init_iou_net target_feat = self.iou_predictor.get_modulation(iou_backbone_features, target_boxes) File "/1/dl_pzx/pytracking/pytracking/../ltr/models/bbreg/atom_iou_net.py", line 157, in get_modulation roi3r = self.prroi_pool3r(c3_r, roi1) File "/home/dell10/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call result = self.forward(*input, **kwargs) File "/1/dl_pzx/pytracking/pytracking/../ltr/external/PreciseRoIPooling/pytorch/prroi_pool/prroi_pool.py", line 28, in forward return prroi_pool2d(features, rois, self.pooled_height, self.pooled_width, self.spatial_scale) File "/1/dl_pzx/pytracking/pytracking/../ltr/external/PreciseRoIPooling/pytorch/prroi_pool/functional.py", line 44, in forward _prroi_pooling = _import_prroi_pooling() File "/1/dl_pzx/pytracking/pytracking/../ltr/external/PreciseRoIPooling/pytorch/prroi_pool/functional.py", line 33, in _import_prroi_pooling verbose=True File "/home/dell10/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 680, in load is_python_module) File "/home/dell10/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 866, in _jit_compile with_cuda=with_cuda) File "/home/dell10/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 919, in _write_ninja_file_and_build _build_extension_module(name, build_directory, verbose) File "/home/dell10/anaconda3/envs/pytracking/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1079, in _build_extension_module raise RuntimeError(message) RuntimeError: Error building extension '_prroi_pooling'

Please help me with the error. l have already read the similar issues but l still can't fix this. About PreciseRoIPooling package, l download it through git clone, not zip in windows. l also follow your install.md but still doesn't work.

imMid-Star avatar Jan 12 '22 08:01 imMid-Star