-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Description
Instructions To Reproduce the 🐛 Bug:
Installation of detectron2 from source failed on cuda-enabled platform during compilation of nms_rotated_cuda.cu.
python.exe -m pip install git+https://github.com/facebookresearch/detectron2.git
Logs:
Running setup.py install for detectron2 ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ludo\Ikomia\Python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ludo\\AppData\\Local\\Temp\\pip-req-build-6x4nuyy4\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ludo\\AppData\\Local\\Temp\\pip-req-build-6x4nuyy4\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Ludo\AppData\Local\Temp\pip-record-ttfxc1oi\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Ludo\Ikomia\Python\Include\detectron2'
cwd: C:\Users\Ludo\AppData\Local\Temp\pip-req-build-6x4nuyy4\
Complete output (4717 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\detectron2
copying detectron2\__init__.py -> build\lib.win-amd64-3.8\detectron2
creating build\lib.win-amd64-3.8\detectron2\checkpoint
copying detectron2\checkpoint\c2_model_loading.py -> build\lib.win-amd64-3.8\detectron2\checkpoint
copying detectron2\checkpoint\catalog.py -> build\lib.win-amd64-3.8\detectron2\checkpoint
copying detectron2\checkpoint\detection_checkpoint.py -> build\lib.win-amd64-3.8\detectron2\checkpoint
copying detectron2\checkpoint\__init__.py -> build\lib.win-amd64-3.8\detectron2\checkpoint
creating build\lib.win-amd64-3.8\detectron2\config
copying detectron2\config\compat.py -> build\lib.win-amd64-3.8\detectron2\config
copying detectron2\config\config.py -> build\lib.win-amd64-3.8\detectron2\config
copying detectron2\config\defaults.py -> build\lib.win-amd64-3.8\detectron2\config
copying detectron2\config\instantiate.py -> build\lib.win-amd64-3.8\detectron2\config
copying detectron2\config\__init__.py -> build\lib.win-amd64-3.8\detectron2\config
creating build\lib.win-amd64-3.8\detectron2\data
copying detectron2\data\build.py -> build\lib.win-amd64-3.8\detectron2\data
copying detectron2\data\catalog.py -> build\lib.win-amd64-3.8\detectron2\data
copying detectron2\data\common.py -> build\lib.win-amd64-3.8\detectron2\data
copying detectron2\data\dataset_mapper.py -> build\lib.win-amd64-3.8\detectron2\data
copying detectron2\data\detection_utils.py -> build\lib.win-amd64-3.8\detectron2\data
copying detectron2\data\__init__.py -> build\lib.win-amd64-3.8\detectron2\data
creating build\lib.win-amd64-3.8\detectron2\engine
copying detectron2\engine\defaults.py -> build\lib.win-amd64-3.8\detectron2\engine
copying detectron2\engine\hooks.py -> build\lib.win-amd64-3.8\detectron2\engine
copying detectron2\engine\launch.py -> build\lib.win-amd64-3.8\detectron2\engine
copying detectron2\engine\train_loop.py -> build\lib.win-amd64-3.8\detectron2\engine
copying detectron2\engine\__init__.py -> build\lib.win-amd64-3.8\detectron2\engine
creating build\lib.win-amd64-3.8\detectron2\evaluation
copying detectron2\evaluation\cityscapes_evaluation.py -> build\lib.win-amd64-3.8\detectron2\evaluation
copying detectron2\evaluation\coco_evaluation.py -> build\lib.win-amd64-3.8\detectron2\evaluation
copying detectron2\evaluation\evaluator.py -> build\lib.win-amd64-3.8\detectron2\evaluation
copying detectron2\evaluation\fast_eval_api.py -> build\lib.win-amd64-3.8\detectron2\evaluation
copying detectron2\evaluation\lvis_evaluation.py -> build\lib.win-amd64-3.8\detectron2\evaluation
copying detectron2\evaluation\panoptic_evaluation.py -> build\lib.win-amd64-3.8\detectron2\evaluation
copying detectron2\evaluation\pascal_voc_evaluation.py -> build\lib.win-amd64-3.8\detectron2\evaluation
copying detectron2\evaluation\rotated_coco_evaluation.py -> build\lib.win-amd64-3.8\detectron2\evaluation
copying detectron2\evaluation\sem_seg_evaluation.py -> build\lib.win-amd64-3.8\detectron2\evaluation
copying detectron2\evaluation\testing.py -> build\lib.win-amd64-3.8\detectron2\evaluation
copying detectron2\evaluation\__init__.py -> build\lib.win-amd64-3.8\detectron2\evaluation
creating build\lib.win-amd64-3.8\detectron2\export
copying detectron2\export\api.py -> build\lib.win-amd64-3.8\detectron2\export
copying detectron2\export\c10.py -> build\lib.win-amd64-3.8\detectron2\export
copying detectron2\export\caffe2_export.py -> build\lib.win-amd64-3.8\detectron2\export
copying detectron2\export\caffe2_inference.py -> build\lib.win-amd64-3.8\detectron2\export
copying detectron2\export\caffe2_modeling.py -> build\lib.win-amd64-3.8\detectron2\export
copying detectron2\export\caffe2_patch.py -> build\lib.win-amd64-3.8\detectron2\export
copying detectron2\export\flatten.py -> build\lib.win-amd64-3.8\detectron2\export
copying detectron2\export\shared.py -> build\lib.win-amd64-3.8\detectron2\export
copying detectron2\export\torchscript.py -> build\lib.win-amd64-3.8\detectron2\export
copying detectron2\export\torchscript_patch.py -> build\lib.win-amd64-3.8\detectron2\export
copying detectron2\export\__init__.py -> build\lib.win-amd64-3.8\detectron2\export
creating build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\aspp.py -> build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\batch_norm.py -> build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\blocks.py -> build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\deform_conv.py -> build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\mask_ops.py -> build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\nms.py -> build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\roi_align.py -> build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\roi_align_rotated.py -> build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\rotated_boxes.py -> build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\shape_spec.py -> build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\wrappers.py -> build\lib.win-amd64-3.8\detectron2\layers
copying detectron2\layers\__init__.py -> build\lib.win-amd64-3.8\detectron2\layers
creating build\lib.win-amd64-3.8\detectron2\modeling
copying detectron2\modeling\anchor_generator.py -> build\lib.win-amd64-3.8\detectron2\modeling
copying detectron2\modeling\box_regression.py -> build\lib.win-amd64-3.8\detectron2\modeling
copying detectron2\modeling\matcher.py -> build\lib.win-amd64-3.8\detectron2\modeling
copying detectron2\modeling\poolers.py -> build\lib.win-amd64-3.8\detectron2\modeling
copying detectron2\modeling\postprocessing.py -> build\lib.win-amd64-3.8\detectron2\modeling
copying detectron2\modeling\sampling.py -> build\lib.win-amd64-3.8\detectron2\modeling
copying detectron2\modeling\test_time_augmentation.py -> build\lib.win-amd64-3.8\detectron2\modeling
copying detectron2\modeling\__init__.py -> build\lib.win-amd64-3.8\detectron2\modeling
creating build\lib.win-amd64-3.8\detectron2\model_zoo
copying detectron2\model_zoo\model_zoo.py -> build\lib.win-amd64-3.8\detectron2\model_zoo
copying detectron2\model_zoo\__init__.py -> build\lib.win-amd64-3.8\detectron2\model_zoo
creating build\lib.win-amd64-3.8\detectron2\projects
copying detectron2\projects\__init__.py -> build\lib.win-amd64-3.8\detectron2\projects
creating build\lib.win-amd64-3.8\detectron2\solver
copying detectron2\solver\build.py -> build\lib.win-amd64-3.8\detectron2\solver
copying detectron2\solver\lr_scheduler.py -> build\lib.win-amd64-3.8\detectron2\solver
copying detectron2\solver\__init__.py -> build\lib.win-amd64-3.8\detectron2\solver
creating build\lib.win-amd64-3.8\detectron2\structures
copying detectron2\structures\boxes.py -> build\lib.win-amd64-3.8\detectron2\structures
copying detectron2\structures\image_list.py -> build\lib.win-amd64-3.8\detectron2\structures
copying detectron2\structures\instances.py -> build\lib.win-amd64-3.8\detectron2\structures
copying detectron2\structures\keypoints.py -> build\lib.win-amd64-3.8\detectron2\structures
copying detectron2\structures\masks.py -> build\lib.win-amd64-3.8\detectron2\structures
copying detectron2\structures\rotated_boxes.py -> build\lib.win-amd64-3.8\detectron2\structures
copying detectron2\structures\__init__.py -> build\lib.win-amd64-3.8\detectron2\structures
creating build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\analysis.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\collect_env.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\colormap.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\comm.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\env.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\events.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\file_io.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\logger.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\memory.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\registry.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\serialize.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\testing.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\video_visualizer.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\visualizer.py -> build\lib.win-amd64-3.8\detectron2\utils
copying detectron2\utils\__init__.py -> build\lib.win-amd64-3.8\detectron2\utils
creating build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\builtin.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\builtin_meta.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\cityscapes.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\cityscapes_panoptic.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\coco.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\coco_panoptic.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\lvis.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\lvis_v0_5_categories.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\lvis_v1_categories.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\pascal_voc.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\register_coco.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
copying detectron2\data\datasets\__init__.py -> build\lib.win-amd64-3.8\detectron2\data\datasets
creating build\lib.win-amd64-3.8\detectron2\data\samplers
copying detectron2\data\samplers\distributed_sampler.py -> build\lib.win-amd64-3.8\detectron2\data\samplers
copying detectron2\data\samplers\grouped_batch_sampler.py -> build\lib.win-amd64-3.8\detectron2\data\samplers
copying detectron2\data\samplers\__init__.py -> build\lib.win-amd64-3.8\detectron2\data\samplers
creating build\lib.win-amd64-3.8\detectron2\data\transforms
copying detectron2\data\transforms\augmentation.py -> build\lib.win-amd64-3.8\detectron2\data\transforms
copying detectron2\data\transforms\augmentation_impl.py -> build\lib.win-amd64-3.8\detectron2\data\transforms
copying detectron2\data\transforms\transform.py -> build\lib.win-amd64-3.8\detectron2\data\transforms
copying detectron2\data\transforms\__init__.py -> build\lib.win-amd64-3.8\detectron2\data\transforms
creating build\lib.win-amd64-3.8\detectron2\modeling\backbone
copying detectron2\modeling\backbone\backbone.py -> build\lib.win-amd64-3.8\detectron2\modeling\backbone
copying detectron2\modeling\backbone\build.py -> build\lib.win-amd64-3.8\detectron2\modeling\backbone
copying detectron2\modeling\backbone\fpn.py -> build\lib.win-amd64-3.8\detectron2\modeling\backbone
copying detectron2\modeling\backbone\resnet.py -> build\lib.win-amd64-3.8\detectron2\modeling\backbone
copying detectron2\modeling\backbone\__init__.py -> build\lib.win-amd64-3.8\detectron2\modeling\backbone
creating build\lib.win-amd64-3.8\detectron2\modeling\meta_arch
copying detectron2\modeling\meta_arch\build.py -> build\lib.win-amd64-3.8\detectron2\modeling\meta_arch
copying detectron2\modeling\meta_arch\panoptic_fpn.py -> build\lib.win-amd64-3.8\detectron2\modeling\meta_arch
copying detectron2\modeling\meta_arch\rcnn.py -> build\lib.win-amd64-3.8\detectron2\modeling\meta_arch
copying detectron2\modeling\meta_arch\retinanet.py -> build\lib.win-amd64-3.8\detectron2\modeling\meta_arch
copying detectron2\modeling\meta_arch\semantic_seg.py -> build\lib.win-amd64-3.8\detectron2\modeling\meta_arch
copying detectron2\modeling\meta_arch\__init__.py -> build\lib.win-amd64-3.8\detectron2\modeling\meta_arch
creating build\lib.win-amd64-3.8\detectron2\modeling\proposal_generator
copying detectron2\modeling\proposal_generator\build.py -> build\lib.win-amd64-3.8\detectron2\modeling\proposal_generator
copying detectron2\modeling\proposal_generator\proposal_utils.py -> build\lib.win-amd64-3.8\detectron2\modeling\proposal_generator
copying detectron2\modeling\proposal_generator\rpn.py -> build\lib.win-amd64-3.8\detectron2\modeling\proposal_generator
copying detectron2\modeling\proposal_generator\rrpn.py -> build\lib.win-amd64-3.8\detectron2\modeling\proposal_generator
copying detectron2\modeling\proposal_generator\__init__.py -> build\lib.win-amd64-3.8\detectron2\modeling\proposal_generator
creating build\lib.win-amd64-3.8\detectron2\modeling\roi_heads
copying detectron2\modeling\roi_heads\box_head.py -> build\lib.win-amd64-3.8\detectron2\modeling\roi_heads
copying detectron2\modeling\roi_heads\cascade_rcnn.py -> build\lib.win-amd64-3.8\detectron2\modeling\roi_heads
copying detectron2\modeling\roi_heads\fast_rcnn.py -> build\lib.win-amd64-3.8\detectron2\modeling\roi_heads
copying detectron2\modeling\roi_heads\keypoint_head.py -> build\lib.win-amd64-3.8\detectron2\modeling\roi_heads
copying detectron2\modeling\roi_heads\mask_head.py -> build\lib.win-amd64-3.8\detectron2\modeling\roi_heads
copying detectron2\modeling\roi_heads\roi_heads.py -> build\lib.win-amd64-3.8\detectron2\modeling\roi_heads
copying detectron2\modeling\roi_heads\rotated_fast_rcnn.py -> build\lib.win-amd64-3.8\detectron2\modeling\roi_heads
copying detectron2\modeling\roi_heads\__init__.py -> build\lib.win-amd64-3.8\detectron2\modeling\roi_heads
creating build\lib.win-amd64-3.8\detectron2\projects\point_rend
copying projects\PointRend\point_rend\color_augmentation.py -> build\lib.win-amd64-3.8\detectron2\projects\point_rend
copying projects\PointRend\point_rend\config.py -> build\lib.win-amd64-3.8\detectron2\projects\point_rend
copying projects\PointRend\point_rend\mask_head.py -> build\lib.win-amd64-3.8\detectron2\projects\point_rend
copying projects\PointRend\point_rend\point_features.py -> build\lib.win-amd64-3.8\detectron2\projects\point_rend
copying projects\PointRend\point_rend\point_head.py -> build\lib.win-amd64-3.8\detectron2\projects\point_rend
copying projects\PointRend\point_rend\roi_heads.py -> build\lib.win-amd64-3.8\detectron2\projects\point_rend
copying projects\PointRend\point_rend\semantic_seg.py -> build\lib.win-amd64-3.8\detectron2\projects\point_rend
copying projects\PointRend\point_rend\__init__.py -> build\lib.win-amd64-3.8\detectron2\projects\point_rend
creating build\lib.win-amd64-3.8\detectron2\projects\deeplab
copying projects\DeepLab\deeplab\build_solver.py -> build\lib.win-amd64-3.8\detectron2\projects\deeplab
copying projects\DeepLab\deeplab\config.py -> build\lib.win-amd64-3.8\detectron2\projects\deeplab
copying projects\DeepLab\deeplab\loss.py -> build\lib.win-amd64-3.8\detectron2\projects\deeplab
copying projects\DeepLab\deeplab\lr_scheduler.py -> build\lib.win-amd64-3.8\detectron2\projects\deeplab
copying projects\DeepLab\deeplab\resnet.py -> build\lib.win-amd64-3.8\detectron2\projects\deeplab
copying projects\DeepLab\deeplab\semantic_seg.py -> build\lib.win-amd64-3.8\detectron2\projects\deeplab
copying projects\DeepLab\deeplab\__init__.py -> build\lib.win-amd64-3.8\detectron2\projects\deeplab
creating build\lib.win-amd64-3.8\detectron2\projects\panoptic_deeplab
copying projects\Panoptic-DeepLab\panoptic_deeplab\config.py -> build\lib.win-amd64-3.8\detectron2\projects\panoptic_deeplab
copying projects\Panoptic-DeepLab\panoptic_deeplab\dataset_mapper.py -> build\lib.win-amd64-3.8\detectron2\projects\panoptic_deeplab
copying projects\Panoptic-DeepLab\panoptic_deeplab\panoptic_seg.py -> build\lib.win-amd64-3.8\detectron2\projects\panoptic_deeplab
copying projects\Panoptic-DeepLab\panoptic_deeplab\post_processing.py -> build\lib.win-amd64-3.8\detectron2\projects\panoptic_deeplab
copying projects\Panoptic-DeepLab\panoptic_deeplab\target_generator.py -> build\lib.win-amd64-3.8\detectron2\projects\panoptic_deeplab
copying projects\Panoptic-DeepLab\panoptic_deeplab\__init__.py -> build\lib.win-amd64-3.8\detectron2\projects\panoptic_deeplab
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs
copying detectron2\model_zoo\configs\Base-RCNN-C4.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs
copying detectron2\model_zoo\configs\Base-RCNN-DilatedC5.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs
copying detectron2\model_zoo\configs\Base-RCNN-FPN.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs
copying detectron2\model_zoo\configs\Base-RetinaNet.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Cityscapes
copying detectron2\model_zoo\configs\Cityscapes\mask_rcnn_R_50_FPN.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Cityscapes
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\faster_rcnn_R_101_C4_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\faster_rcnn_R_101_DC5_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\faster_rcnn_R_101_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\faster_rcnn_R_50_C4_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\faster_rcnn_R_50_C4_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\faster_rcnn_R_50_DC5_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\faster_rcnn_R_50_DC5_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\faster_rcnn_R_50_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\faster_rcnn_R_50_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\faster_rcnn_X_101_32x8d_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\fast_rcnn_R_50_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\retinanet_R_101_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\retinanet_R_50_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\retinanet_R_50_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\rpn_R_50_C4_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
copying detectron2\model_zoo\configs\COCO-Detection\rpn_R_50_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Detection
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
copying detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_R_101_C4_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
copying detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_R_101_DC5_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
copying detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_R_101_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
copying detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_R_50_C4_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
copying detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_R_50_C4_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
copying detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_R_50_DC5_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
copying detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_R_50_DC5_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
copying detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_R_50_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
copying detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_R_50_FPN_1x_giou.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
copying detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_R_50_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
copying detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_X_101_32x8d_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Keypoints
copying detectron2\model_zoo\configs\COCO-Keypoints\Base-Keypoint-RCNN-FPN.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Keypoints
copying detectron2\model_zoo\configs\COCO-Keypoints\keypoint_rcnn_R_101_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Keypoints
copying detectron2\model_zoo\configs\COCO-Keypoints\keypoint_rcnn_R_50_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Keypoints
copying detectron2\model_zoo\configs\COCO-Keypoints\keypoint_rcnn_R_50_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Keypoints
copying detectron2\model_zoo\configs\COCO-Keypoints\keypoint_rcnn_X_101_32x8d_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-Keypoints
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-PanopticSegmentation
copying detectron2\model_zoo\configs\COCO-PanopticSegmentation\Base-Panoptic-FPN.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-PanopticSegmentation
copying detectron2\model_zoo\configs\COCO-PanopticSegmentation\panoptic_fpn_R_101_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-PanopticSegmentation
copying detectron2\model_zoo\configs\COCO-PanopticSegmentation\panoptic_fpn_R_50_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-PanopticSegmentation
copying detectron2\model_zoo\configs\COCO-PanopticSegmentation\panoptic_fpn_R_50_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-PanopticSegmentation
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Detectron1-Comparisons
copying detectron2\model_zoo\configs\Detectron1-Comparisons\faster_rcnn_R_50_FPN_noaug_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Detectron1-Comparisons
copying detectron2\model_zoo\configs\Detectron1-Comparisons\keypoint_rcnn_R_50_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Detectron1-Comparisons
copying detectron2\model_zoo\configs\Detectron1-Comparisons\mask_rcnn_R_50_FPN_noaug_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Detectron1-Comparisons
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs\LVISv0.5-InstanceSegmentation
copying detectron2\model_zoo\configs\LVISv0.5-InstanceSegmentation\mask_rcnn_R_101_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\LVISv0.5-InstanceSegmentation
copying detectron2\model_zoo\configs\LVISv0.5-InstanceSegmentation\mask_rcnn_R_50_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\LVISv0.5-InstanceSegmentation
copying detectron2\model_zoo\configs\LVISv0.5-InstanceSegmentation\mask_rcnn_X_101_32x8d_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\LVISv0.5-InstanceSegmentation
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs\LVISv1-InstanceSegmentation
copying detectron2\model_zoo\configs\LVISv1-InstanceSegmentation\mask_rcnn_R_101_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\LVISv1-InstanceSegmentation
copying detectron2\model_zoo\configs\LVISv1-InstanceSegmentation\mask_rcnn_R_50_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\LVISv1-InstanceSegmentation
copying detectron2\model_zoo\configs\LVISv1-InstanceSegmentation\mask_rcnn_X_101_32x8d_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\LVISv1-InstanceSegmentation
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\cascade_mask_rcnn_R_50_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\cascade_mask_rcnn_R_50_FPN_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\cascade_mask_rcnn_X_152_32x8d_FPN_IN5k_gn_dconv.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\mask_rcnn_R_50_FPN_1x_cls_agnostic.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\mask_rcnn_R_50_FPN_1x_dconv_c3-c5.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\mask_rcnn_R_50_FPN_3x_dconv_c3-c5.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\mask_rcnn_R_50_FPN_3x_gn.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\mask_rcnn_R_50_FPN_3x_syncbn.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\panoptic_fpn_R_101_dconv_cascade_gn_3x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\scratch_mask_rcnn_R_50_FPN_3x_gn.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\scratch_mask_rcnn_R_50_FPN_9x_gn.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\scratch_mask_rcnn_R_50_FPN_9x_syncbn.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
copying detectron2\model_zoo\configs\Misc\semantic_R_50_FPN_1x.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\Misc
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs\PascalVOC-Detection
copying detectron2\model_zoo\configs\PascalVOC-Detection\faster_rcnn_R_50_C4.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\PascalVOC-Detection
copying detectron2\model_zoo\configs\PascalVOC-Detection\faster_rcnn_R_50_FPN.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\PascalVOC-Detection
creating build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\cascade_mask_rcnn_R_50_FPN_inference_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\cascade_mask_rcnn_R_50_FPN_instant_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\fast_rcnn_R_50_FPN_inference_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\fast_rcnn_R_50_FPN_instant_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\keypoint_rcnn_R_50_FPN_inference_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\keypoint_rcnn_R_50_FPN_instant_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\keypoint_rcnn_R_50_FPN_normalized_training_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\keypoint_rcnn_R_50_FPN_training_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\mask_rcnn_R_50_C4_GCV_instant_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\mask_rcnn_R_50_C4_inference_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\mask_rcnn_R_50_C4_instant_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\mask_rcnn_R_50_C4_training_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\mask_rcnn_R_50_DC5_inference_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\mask_rcnn_R_50_FPN_inference_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\mask_rcnn_R_50_FPN_instant_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\mask_rcnn_R_50_FPN_pred_boxes_training_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\mask_rcnn_R_50_FPN_training_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\panoptic_fpn_R_50_inference_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\panoptic_fpn_R_50_instant_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\panoptic_fpn_R_50_training_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\retinanet_R_50_FPN_inference_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\retinanet_R_50_FPN_instant_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\rpn_R_50_FPN_inference_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\rpn_R_50_FPN_instant_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\semantic_R_50_FPN_inference_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\semantic_R_50_FPN_instant_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
copying detectron2\model_zoo\configs\quick_schedules\semantic_R_50_FPN_training_acc_test.yaml -> build\lib.win-amd64-3.8\detectron2\model_zoo\configs\quick_schedules
running build_ext
C:\Users\Ludo\Ikomia\Python\lib\site-packages\torch\utils\cpp_extension.py:369: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
C:\Users\Ludo\Ikomia\Python\lib\site-packages\torch\utils\cpp_extension.py:304: UserWarning: Error checking compiler version for cl: [WinError 2] Le fichier spécifié est introuvable
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building 'detectron2._C' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\Users
creating build\temp.win-amd64-3.8\Release\Users\Ludo
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData\Local
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData\Local\Temp
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData\Local\Temp\pip-req-build-6x4nuyy4
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData\Local\Temp\pip-req-build-6x4nuyy4\detectron2
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData\Local\Temp\pip-req-build-6x4nuyy4\detectron2\layers
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData\Local\Temp\pip-req-build-6x4nuyy4\detectron2\layers\csrc
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData\Local\Temp\pip-req-build-6x4nuyy4\detectron2\layers\csrc\box_iou_rotated
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData\Local\Temp\pip-req-build-6x4nuyy4\detectron2\layers\csrc\cocoeval
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData\Local\Temp\pip-req-build-6x4nuyy4\detectron2\layers\csrc\nms_rotated
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData\Local\Temp\pip-req-build-6x4nuyy4\detectron2\layers\csrc\ROIAlignRotated
creating build\temp.win-amd64-3.8\Release\Users\Ludo\AppData\Local\Temp\pip-req-build-6x4nuyy4\detectron2\layers\csrc\deformable
...
-----------------------------------------------------
Lots of irrelevant warnings
------------------------------------------------------
...
C:/Users/Ludo/AppData/Local/Temp/pip-req-build-6x4nuyy4/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(14): error: name must be a namespace name
C:/Users/Ludo/AppData/Local/Temp/pip-req-build-6x4nuyy4/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: identifier "single_box_iou_rotated" is undefined
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
(105): here
C:/Users/Ludo/AppData/Local/Temp/pip-req-build-6x4nuyy4/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: type name is not allowed
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
(105): here
C:/Users/Ludo/AppData/Local/Temp/pip-req-build-6x4nuyy4/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): warning: expression has no effect
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
(105): here
C:/Users/Ludo/AppData/Local/Temp/pip-req-build-6x4nuyy4/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(58): warning: variable "cur_box" was set but never used
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
(105): here
C:/Users/Ludo/AppData/Local/Temp/pip-req-build-6x4nuyy4/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: identifier "single_box_iou_rotated" is undefined
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
(105): here
C:/Users/Ludo/AppData/Local/Temp/pip-req-build-6x4nuyy4/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: type name is not allowed
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
(105): here
C:/Users/Ludo/AppData/Local/Temp/pip-req-build-6x4nuyy4/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): warning: expression has no effect
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
(105): here
C:/Users/Ludo/AppData/Local/Temp/pip-req-build-6x4nuyy4/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(58): warning: variable "cur_box" was set but never used
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
(105): here
5 errors detected in the compilation of "C:/Users/Ludo/AppData/Local/Temp/tmpxft_0000178c_00000000-7_nms_rotated_cuda.cpp1.ii".
nms_rotated_cuda.cu
error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\bin\\nvcc.exe' failed with exit status 1
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "C:\Users\Ludo\AppData\Roaming\Python\Python38\site-packages\colorama\ansitowin32.py", line 59, in closed
return stream.closed
ValueError: underlying buffer has been detached
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Ludo\Ikomia\Python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ludo\\AppData\\Local\\Temp\\pip-req-build-6x4nuyy4\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ludo\\AppData\\Local\\Temp\\pip-req-build-6x4nuyy4\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Ludo\AppData\Local\Temp\pip-record-ttfxc1oi\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Ludo\Ikomia\Python\Include\detectron2' Check the logs for full command output.
Expected behavior:
Compilation and installation complete successfullly
Environment:
sys.platform win32
Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)]
numpy 1.18.5
detectron2 failed to import
detectron2._C not built correctly: No module named 'detectron2'
DETECTRON2_ENV_MODULE <not set>
PyTorch 1.8.0+cu101 @C:\Users\Ludo\Ikomia\Python\lib\site-packages\torch
PyTorch debug build False
GPU available True
GPU 0 GeForce GTX 1060 6GB (arch=6.1)
CUDA_HOME C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1
Pillow 8.1.2
torchvision 0.9.0+cu101 @C:\Users\Ludo\Ikomia\Python\lib\site-packages\torchvision
torchvision arch flags C:\Users\Ludo\Ikomia\Python\lib\site-packages\torchvision\_C.pyd; cannot find cuobjdump
fvcore 0.1.3.post20210317
cv2 Not found
---------------------- ---------------------------------------------------------------------------------------
PyTorch built with:
- C++ Version: 199711
- MSVC 192829337
- Intel(R) Math Kernel Library Version 2020.0.2 Product Build 20200624 for Intel(R) 64 architecture applications
- Intel(R) MKL-DNN v1.7.0 (Git Hash 7aed236906b1f7a05c0917e5257a1af05e9ff683)
- OpenMP 2019
- CPU capability usage: AVX2
- CUDA Runtime 10.1
- NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37
- CuDNN 7.6.4
- Magma 2.5.4
- Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=10.1, CUDNN_VERSION=7.6.4, CXX_COMPILER=C:/w/b/windows/tmp_bin/sccache-cl.exe, CXX_FLAGS=/DWIN32 /D_WINDOWS /GR /EHsc /w /bigobj -DUSE_PTHREADPOOL -openmp:experimental -DNDEBUG -DUSE_FBGEMM -DUSE_XNNPACK, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.8.0, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=OFF, USE_OPENMP=ON,
Solution
As there is no official support for Windows, I propose a solution that works for me. Feedbacks are welcome to know if assumptions behind the fix are correct and if the fix itself is convenient in all cases.
My assumption is that the macro WITH_CUDA is undefined when compiling the CUDA kernel nms_rotated_cuda.cu. Thus, a mandatory #include is missing in the code below of nms_rotated_cuda.cu because none of these conditions are met:
#ifdef WITH_CUDA
#include "../box_iou_rotated/box_iou_rotated_utils.h"
#endif
// TODO avoid this when pytorch supports "same directory" hipification
#ifdef WITH_HIP
#include "box_iou_rotated/box_iou_rotated_utils.h"
#endif`
It seems that the macro WITH_CUDA is well defined in the setup.py but it is not passed to the nvcc compiler for unknown reasons. A solution is to set the WITH_CUDA macro directly in the nvcc options in setup.py as pointed here
With this little fix, compilation and installation complete successfully .