zjhuang22 / maskscoring_rcnn

Codes for paper "Mask Scoring R-CNN".
MIT License
1.9k stars 378 forks source link

command 'gcc' failed with exit status 1 #85

Open sls33 opened 4 years ago

sls33 commented 4 years ago

When I run "cd vision python setup.py install", I have a problem, " command 'gcc' failed with exit status 1" cuda = 10.0 pytorch-nightly = 1.0.0

/home/sls/ML/vision/torchvision/csrc/vision.cpp: At global scope: /home/sls/ML/vision/torchvision/csrc/vision.cpp:43:12: error: ‘RegisterOperators’ is not a member of ‘torch’ torch::RegisterOperators() ^~~~~ /home/sls/ML/vision/torchvision/csrc/vision.cpp:43:12: note: suggested alternative: In file included from /home/sls/anaconda3/envs/maskrcnn_benchmark/lib/python3.6/site-packages/torch/include/torch/script.h:5:0, from /home/sls/ML/vision/torchvision/csrc/vision.cpp:2: /home/sls/anaconda3/envs/maskrcnn_benchmark/lib/python3.6/site-packages/torch/include/torch/csrc/jit/custom_operator.h:201:18:note: ‘torch::jit::RegisterOperators’ struct TORCH_API RegisterOperators { ^~~~~ /home/sls/ML/vision/torchvision/csrc/vision.cpp:42:13: warning: ‘registry’ defined but not used [-Wunused-variable] static auto registry = ^~~~ error: command 'gcc' failed with exit status 1