Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detectron2 issue on Mac intel #5218

Open
valentinamisi opened this issue Feb 13, 2024 · 4 comments
Open

Detectron2 issue on Mac intel #5218

valentinamisi opened this issue Feb 13, 2024 · 4 comments

Comments

@valentinamisi
Copy link

Instructions To Reproduce the 🐛 Bug:

  1. Full runnable code or full changes made:
# I want to have detectron2 to be able to use layoutparser. 
# On the webpage (https://layout-parser.github.io/tutorials/installation) it says to run 

pip3 install 'git+https://github.com/facebookresearch/detectron2.git@v0.4#egg=detectron2' 

# if not working then it directs to a page (https://github.com/facebookresearch/detectron2/blob/main/INSTALL.md) 
# which explains the requirements. It did not work for me with the first method. The requirements I looked at and 
# followed the steps:
# 1) Linux or macOS with Python ≥ 3.7
# 2) PyTorch ≥ 1.8 and [torchvision](https://github.com/pytorch/vision/) that matches the PyTorch installation. 
# Install them together at [pytorch.org](https://pytorch.org/) to make sure of this
# 3) OpenCV is optional but needed by demo and visualization

# To get these I run:

python --version
# output: Python 3.11.5
pip install torch torchvision torchaudio
pip install opencv-python

# Then, to build Detectron2 from Source gcc & g++ ≥ 5.4 are required, so I run:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install gcc
xcode-select --install

# Then, as I understood now I can build detectron2, I tried to run with all these three methods:

python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
# (add --user if you don't have permission)

# Or, to install it from a local clone:
git clone https://github.com/facebookresearch/detectron2.git
python -m pip install -e detectron2

# On macOS, you may need to prepend the above commands with a few environment variables:
CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" python -m pip install ...

# But none worked. 

# My error message:
#     fatal error: too many errors emitted, stopping now [-ferror-limit=]
#     20 errors generated.
#     error: command '/usr/bin/clang' failed with exit code 1
#     [end of output]

# note: This error originates from a subprocess, and is likely not a problem with pip.
#  ERROR: Failed building wheel for detectron2
#  Running setup.py clean for detectron2
# Failed to build detectron2
# ERROR: Could not build wheels for detectron2, which is required to install pyproject.toml-based projects

@fishspeech
Copy link

I'm having the same issue. Full error message seems to show that some value() flag (on MacOS 13.2) is not being parsed correctly.

Collecting git+https://github.com/facebookresearch/detectron2.git
  Cloning https://github.com/facebookresearch/detectron2.git to /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd
  Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/detectron2.git /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd
  Resolved https://github.com/facebookresearch/detectron2.git to commit 3ff5dd1cff4417af07097064813c9f28d7461d3c
  Preparing metadata (setup.py) ... done
Requirement already satisfied: Pillow>=7.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from detectron2==0.6) (10.2.0)
Requirement already satisfied: matplotlib in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from detectron2==0.6) (3.8.0)
Requirement already satisfied: pycocotools>=2.0.2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from detectron2==0.6) (2.0.7)
Requirement already satisfied: termcolor>=1.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from detectron2==0.6) (2.4.0)
Collecting yacs>=0.1.8 (from detectron2==0.6)
  Using cached yacs-0.1.8-py3-none-any.whl.metadata (639 bytes)
Collecting tabulate (from detectron2==0.6)
  Using cached tabulate-0.9.0-py3-none-any.whl.metadata (34 kB)
Collecting cloudpickle (from detectron2==0.6)
  Using cached cloudpickle-3.0.0-py3-none-any.whl.metadata (7.0 kB)
Requirement already satisfied: tqdm>4.29.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from detectron2==0.6) (4.66.1)
Requirement already satisfied: tensorboard in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from detectron2==0.6) (2.15.1)
Collecting fvcore<0.1.6,>=0.1.5 (from detectron2==0.6)
  Using cached fvcore-0.1.5.post20221221-py3-none-any.whl
Collecting iopath<0.1.10,>=0.1.7 (from detectron2==0.6)
  Using cached iopath-0.1.9-py3-none-any.whl.metadata (370 bytes)
Collecting omegaconf<2.4,>=2.1 (from detectron2==0.6)
  Using cached omegaconf-2.3.0-py3-none-any.whl.metadata (3.9 kB)
Collecting hydra-core>=1.1 (from detectron2==0.6)
  Using cached hydra_core-1.3.2-py3-none-any.whl.metadata (5.5 kB)
Collecting black (from detectron2==0.6)
  Using cached black-24.2.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (74 kB)
Requirement already satisfied: packaging in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from detectron2==0.6) (23.1)
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from fvcore<0.1.6,>=0.1.5->detectron2==0.6) (1.26.1)
Requirement already satisfied: pyyaml>=5.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from fvcore<0.1.6,>=0.1.5->detectron2==0.6) (6.0.1)
Collecting antlr4-python3-runtime==4.9.* (from hydra-core>=1.1->detectron2==0.6)
  Using cached antlr4_python3_runtime-4.9.3-py3-none-any.whl
Collecting portalocker (from iopath<0.1.10,>=0.1.7->detectron2==0.6)
  Using cached portalocker-2.8.2-py3-none-any.whl.metadata (8.5 kB)
Requirement already satisfied: contourpy>=1.0.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from matplotlib->detectron2==0.6) (1.1.1)
Requirement already satisfied: cycler>=0.10 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from matplotlib->detectron2==0.6) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from matplotlib->detectron2==0.6) (4.43.1)
Requirement already satisfied: kiwisolver>=1.0.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from matplotlib->detectron2==0.6) (1.4.5)
Requirement already satisfied: pyparsing>=2.3.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from matplotlib->detectron2==0.6) (3.1.1)
Requirement already satisfied: python-dateutil>=2.7 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from matplotlib->detectron2==0.6) (2.8.2)
Requirement already satisfied: click>=8.0.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from black->detectron2==0.6) (8.1.7)
Collecting mypy-extensions>=0.4.3 (from black->detectron2==0.6)
  Using cached mypy_extensions-1.0.0-py3-none-any.whl.metadata (1.1 kB)
Collecting pathspec>=0.9.0 (from black->detectron2==0.6)
  Using cached pathspec-0.12.1-py3-none-any.whl.metadata (21 kB)
Requirement already satisfied: platformdirs>=2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from black->detectron2==0.6) (3.10.0)
Requirement already satisfied: absl-py>=0.4 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from tensorboard->detectron2==0.6) (1.4.0)
Requirement already satisfied: grpcio>=1.48.2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from tensorboard->detectron2==0.6) (1.60.0)
Requirement already satisfied: google-auth<3,>=1.6.3 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from tensorboard->detectron2==0.6) (2.26.1)
Requirement already satisfied: google-auth-oauthlib<2,>=0.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from tensorboard->detectron2==0.6) (1.2.0)
Requirement already satisfied: markdown>=2.6.8 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from tensorboard->detectron2==0.6) (3.5.2)
Requirement already satisfied: protobuf<4.24,>=3.19.6 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from tensorboard->detectron2==0.6) (3.20.3)
Requirement already satisfied: requests<3,>=2.21.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from tensorboard->detectron2==0.6) (2.31.0)
Requirement already satisfied: setuptools>=41.0.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from tensorboard->detectron2==0.6) (65.5.0)
Requirement already satisfied: six>1.9 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from tensorboard->detectron2==0.6) (1.16.0)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from tensorboard->detectron2==0.6) (0.7.2)
Requirement already satisfied: werkzeug>=1.0.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from tensorboard->detectron2==0.6) (3.0.1)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (5.3.2)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (0.3.0)
Requirement already satisfied: rsa<5,>=3.1.4 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (4.9)
Requirement already satisfied: requests-oauthlib>=0.7.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from google-auth-oauthlib<2,>=0.5->tensorboard->detectron2==0.6) (1.3.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (1.26.18)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (2023.11.17)
Requirement already satisfied: MarkupSafe>=2.1.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from werkzeug>=1.0.1->tensorboard->detectron2==0.6) (2.1.3)
Requirement already satisfied: pyasn1<0.6.0,>=0.4.6 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (0.5.1)
Requirement already satisfied: oauthlib>=3.0.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<2,>=0.5->tensorboard->detectron2==0.6) (3.2.2)
Using cached hydra_core-1.3.2-py3-none-any.whl (154 kB)
Using cached iopath-0.1.9-py3-none-any.whl (27 kB)
Using cached omegaconf-2.3.0-py3-none-any.whl (79 kB)
Using cached yacs-0.1.8-py3-none-any.whl (14 kB)
Using cached black-24.2.0-cp311-cp311-macosx_11_0_arm64.whl (1.4 MB)
Using cached cloudpickle-3.0.0-py3-none-any.whl (20 kB)
Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Using cached mypy_extensions-1.0.0-py3-none-any.whl (4.7 kB)
Using cached pathspec-0.12.1-py3-none-any.whl (31 kB)
Using cached portalocker-2.8.2-py3-none-any.whl (17 kB)
Building wheels for collected packages: detectron2
  Building wheel for detectron2 (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [639 lines of output]
      running bdist_wheel
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/utils/cpp_extension.py:500: 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.'))
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-universal2-cpython-311
      creating build/lib.macosx-10.9-universal2-cpython-311/tools
      copying tools/lightning_train_net.py -> build/lib.macosx-10.9-universal2-cpython-311/tools
      copying tools/convert-torchvision-to-d2.py -> build/lib.macosx-10.9-universal2-cpython-311/tools
      copying tools/benchmark.py -> build/lib.macosx-10.9-universal2-cpython-311/tools
      copying tools/visualize_data.py -> build/lib.macosx-10.9-universal2-cpython-311/tools
      copying tools/plain_train_net.py -> build/lib.macosx-10.9-universal2-cpython-311/tools
      copying tools/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/tools
      copying tools/visualize_json_results.py -> build/lib.macosx-10.9-universal2-cpython-311/tools
      copying tools/analyze_model.py -> build/lib.macosx-10.9-universal2-cpython-311/tools
      copying tools/lazyconfig_train_net.py -> build/lib.macosx-10.9-universal2-cpython-311/tools
      copying tools/train_net.py -> build/lib.macosx-10.9-universal2-cpython-311/tools
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2
      copying detectron2/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/checkpoint
      copying detectron2/checkpoint/catalog.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/checkpoint
      copying detectron2/checkpoint/c2_model_loading.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/checkpoint
      copying detectron2/checkpoint/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/checkpoint
      copying detectron2/checkpoint/detection_checkpoint.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/checkpoint
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/deform_conv.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/shape_spec.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/roi_align.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/roi_align_rotated.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/nms.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/aspp.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/mask_ops.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/wrappers.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/losses.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/blocks.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/batch_norm.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      copying detectron2/layers/rotated_boxes.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/layers
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/structures
      copying detectron2/structures/instances.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/structures
      copying detectron2/structures/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/structures
      copying detectron2/structures/boxes.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/structures
      copying detectron2/structures/keypoints.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/structures
      copying detectron2/structures/masks.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/structures
      copying detectron2/structures/image_list.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/structures
      copying detectron2/structures/rotated_boxes.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/structures
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/config
      copying detectron2/config/config.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/config
      copying detectron2/config/compat.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/config
      copying detectron2/config/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/config
      copying detectron2/config/instantiate.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/config
      copying detectron2/config/defaults.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/config
      copying detectron2/config/lazy.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/config
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects
      copying detectron2/projects/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/serialize.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/colormap.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/tracing.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/env.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/analysis.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/comm.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/memory.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/video_visualizer.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/registry.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/events.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/collect_env.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/logger.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/file_io.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/develop.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/testing.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      copying detectron2/utils/visualizer.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/utils
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/solver
      copying detectron2/solver/build.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/solver
      copying detectron2/solver/lr_scheduler.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/solver
      copying detectron2/solver/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/solver
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo
      copying detectron2/model_zoo/model_zoo.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo
      copying detectron2/model_zoo/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling
      copying detectron2/modeling/test_time_augmentation.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling
      copying detectron2/modeling/poolers.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling
      copying detectron2/modeling/matcher.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling
      copying detectron2/modeling/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling
      copying detectron2/modeling/box_regression.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling
      copying detectron2/modeling/mmdet_wrapper.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling
      copying detectron2/modeling/anchor_generator.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling
      copying detectron2/modeling/sampling.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling
      copying detectron2/modeling/postprocessing.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      copying detectron2/evaluation/fast_eval_api.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      copying detectron2/evaluation/panoptic_evaluation.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      copying detectron2/evaluation/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      copying detectron2/evaluation/cityscapes_evaluation.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      copying detectron2/evaluation/coco_evaluation.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      copying detectron2/evaluation/sem_seg_evaluation.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      copying detectron2/evaluation/pascal_voc_evaluation.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      copying detectron2/evaluation/lvis_evaluation.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      copying detectron2/evaluation/testing.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      copying detectron2/evaluation/evaluator.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      copying detectron2/evaluation/rotated_coco_evaluation.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/evaluation
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/tracking
      copying detectron2/tracking/bbox_iou_tracker.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/tracking
      copying detectron2/tracking/vanilla_hungarian_bbox_iou_tracker.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/tracking
      copying detectron2/tracking/hungarian_tracker.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/tracking
      copying detectron2/tracking/base_tracker.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/tracking
      copying detectron2/tracking/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/tracking
      copying detectron2/tracking/utils.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/tracking
      copying detectron2/tracking/iou_weighted_hungarian_bbox_iou_tracker.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/tracking
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      copying detectron2/export/c10.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      copying detectron2/export/caffe2_export.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      copying detectron2/export/flatten.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      copying detectron2/export/caffe2_patch.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      copying detectron2/export/caffe2_modeling.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      copying detectron2/export/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      copying detectron2/export/shared.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      copying detectron2/export/api.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      copying detectron2/export/caffe2_inference.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      copying detectron2/export/torchscript_patch.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      copying detectron2/export/torchscript.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/export
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/data
      copying detectron2/data/catalog.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data
      copying detectron2/data/build.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data
      copying detectron2/data/benchmark.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data
      copying detectron2/data/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data
      copying detectron2/data/detection_utils.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data
      copying detectron2/data/dataset_mapper.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data
      copying detectron2/data/common.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/engine
      copying detectron2/engine/hooks.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/engine
      copying detectron2/engine/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/engine
      copying detectron2/engine/train_loop.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/engine
      copying detectron2/engine/launch.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/engine
      copying detectron2/engine/defaults.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/engine
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/meta_arch
      copying detectron2/modeling/meta_arch/build.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/meta_arch
      copying detectron2/modeling/meta_arch/rcnn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/meta_arch
      copying detectron2/modeling/meta_arch/panoptic_fpn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/meta_arch
      copying detectron2/modeling/meta_arch/dense_detector.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/meta_arch
      copying detectron2/modeling/meta_arch/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/meta_arch
      copying detectron2/modeling/meta_arch/fcos.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/meta_arch
      copying detectron2/modeling/meta_arch/retinanet.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/meta_arch
      copying detectron2/modeling/meta_arch/semantic_seg.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/meta_arch
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/proposal_generator
      copying detectron2/modeling/proposal_generator/build.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/proposal_generator
      copying detectron2/modeling/proposal_generator/rpn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/proposal_generator
      copying detectron2/modeling/proposal_generator/rrpn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/proposal_generator
      copying detectron2/modeling/proposal_generator/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/proposal_generator
      copying detectron2/modeling/proposal_generator/proposal_utils.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/proposal_generator
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/roi_heads
      copying detectron2/modeling/roi_heads/mask_head.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/roi_heads
      copying detectron2/modeling/roi_heads/fast_rcnn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/roi_heads
      copying detectron2/modeling/roi_heads/box_head.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/roi_heads
      copying detectron2/modeling/roi_heads/keypoint_head.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/roi_heads
      copying detectron2/modeling/roi_heads/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/roi_heads
      copying detectron2/modeling/roi_heads/rotated_fast_rcnn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/roi_heads
      copying detectron2/modeling/roi_heads/cascade_rcnn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/roi_heads
      copying detectron2/modeling/roi_heads/roi_heads.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/roi_heads
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/backbone
      copying detectron2/modeling/backbone/build.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/backbone
      copying detectron2/modeling/backbone/fpn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/backbone
      copying detectron2/modeling/backbone/regnet.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/backbone
      copying detectron2/modeling/backbone/swin.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/backbone
      copying detectron2/modeling/backbone/backbone.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/backbone
      copying detectron2/modeling/backbone/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/backbone
      copying detectron2/modeling/backbone/vit.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/backbone
      copying detectron2/modeling/backbone/resnet.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/backbone
      copying detectron2/modeling/backbone/utils.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/backbone
      copying detectron2/modeling/backbone/mvit.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/modeling/backbone
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/coco.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/register_coco.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/cityscapes.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/cityscapes_panoptic.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/lvis_v1_categories.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/lvis.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/coco_panoptic.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/builtin.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/lvis_v1_category_image_count.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/pascal_voc.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/lvis_v0_5_categories.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      copying detectron2/data/datasets/builtin_meta.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/datasets
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/transforms
      copying detectron2/data/transforms/augmentation_impl.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/transforms
      copying detectron2/data/transforms/augmentation.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/transforms
      copying detectron2/data/transforms/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/transforms
      copying detectron2/data/transforms/transform.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/transforms
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/samplers
      copying detectron2/data/samplers/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/samplers
      copying detectron2/data/samplers/grouped_batch_sampler.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/samplers
      copying detectron2/data/samplers/distributed_sampler.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/data/samplers
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/point_rend
      copying projects/PointRend/point_rend/point_features.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/point_rend
      copying projects/PointRend/point_rend/mask_head.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/point_rend
      copying projects/PointRend/point_rend/config.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/point_rend
      copying projects/PointRend/point_rend/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/point_rend
      copying projects/PointRend/point_rend/point_head.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/point_rend
      copying projects/PointRend/point_rend/roi_heads.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/point_rend
      copying projects/PointRend/point_rend/color_augmentation.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/point_rend
      copying projects/PointRend/point_rend/semantic_seg.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/point_rend
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/deeplab
      copying projects/DeepLab/deeplab/lr_scheduler.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/deeplab
      copying projects/DeepLab/deeplab/config.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/deeplab
      copying projects/DeepLab/deeplab/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/deeplab
      copying projects/DeepLab/deeplab/loss.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/deeplab
      copying projects/DeepLab/deeplab/resnet.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/deeplab
      copying projects/DeepLab/deeplab/build_solver.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/deeplab
      copying projects/DeepLab/deeplab/semantic_seg.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/deeplab
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/panoptic_deeplab
      copying projects/Panoptic-DeepLab/panoptic_deeplab/config.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/panoptic_deeplab
      copying projects/Panoptic-DeepLab/panoptic_deeplab/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/panoptic_deeplab
      copying projects/Panoptic-DeepLab/panoptic_deeplab/dataset_mapper.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/panoptic_deeplab
      copying projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/panoptic_deeplab
      copying projects/Panoptic-DeepLab/panoptic_deeplab/post_processing.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/panoptic_deeplab
      copying projects/Panoptic-DeepLab/panoptic_deeplab/target_generator.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/projects/panoptic_deeplab
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs
      copying detectron2/model_zoo/configs/Base-RetinaNet.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs
      copying detectron2/model_zoo/configs/Base-RCNN-FPN.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs
      copying detectron2/model_zoo/configs/Base-RCNN-C4.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs
      copying detectron2/model_zoo/configs/Base-RCNN-DilatedC5.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/scratch_mask_rcnn_R_50_FPN_9x_syncbn.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/mask_rcnn_R_50_FPN_3x_dconv_c3-c5.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/semantic_R_50_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/scratch_mask_rcnn_R_50_FPN_3x_gn.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/panoptic_fpn_R_101_dconv_cascade_gn_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/scratch_mask_rcnn_R_50_FPN_9x_gn.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/mask_rcnn_R_50_FPN_3x_gn.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/mask_rcnn_R_50_FPN_1x_dconv_c3-c5.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/cascade_mask_rcnn_R_50_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/cascade_mask_rcnn_X_152_32x8d_FPN_IN5k_gn_dconv.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/mask_rcnn_R_50_FPN_1x_cls_agnostic.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/cascade_mask_rcnn_R_50_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/mask_rcnn_R_50_FPN_3x_syncbn.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Keypoints
      copying detectron2/model_zoo/configs/COCO-Keypoints/keypoint_rcnn_X_101_32x8d_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Keypoints
      copying detectron2/model_zoo/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Keypoints
      copying detectron2/model_zoo/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Keypoints
      copying detectron2/model_zoo/configs/COCO-Keypoints/Base-Keypoint-RCNN-FPN.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Keypoints
      copying detectron2/model_zoo/configs/COCO-Keypoints/keypoint_rcnn_R_101_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Keypoints
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/PascalVOC-Detection
      copying detectron2/model_zoo/configs/PascalVOC-Detection/faster_rcnn_R_50_FPN.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/PascalVOC-Detection
      copying detectron2/model_zoo/configs/PascalVOC-Detection/faster_rcnn_R_50_C4.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/PascalVOC-Detection
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Detectron1-Comparisons
      copying detectron2/model_zoo/configs/Detectron1-Comparisons/mask_rcnn_R_50_FPN_noaug_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Detectron1-Comparisons
      copying detectron2/model_zoo/configs/Detectron1-Comparisons/keypoint_rcnn_R_50_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Detectron1-Comparisons
      copying detectron2/model_zoo/configs/Detectron1-Comparisons/faster_rcnn_R_50_FPN_noaug_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Detectron1-Comparisons
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/faster_rcnn_X_101_32x8d_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/rpn_R_50_C4_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/rpn_R_50_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/faster_rcnn_R_101_C4_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/retinanet_R_101_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/faster_rcnn_R_101_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/faster_rcnn_R_50_DC5_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/faster_rcnn_R_50_DC5_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/faster_rcnn_R_50_C4_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/faster_rcnn_R_50_C4_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/fast_rcnn_R_50_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/faster_rcnn_R_50_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/faster_rcnn_R_50_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/retinanet_R_50_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/faster_rcnn_R_101_DC5_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/retinanet_R_50_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-PanopticSegmentation
      copying detectron2/model_zoo/configs/COCO-PanopticSegmentation/panoptic_fpn_R_101_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-PanopticSegmentation
      copying detectron2/model_zoo/configs/COCO-PanopticSegmentation/Base-Panoptic-FPN.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-PanopticSegmentation
      copying detectron2/model_zoo/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-PanopticSegmentation
      copying detectron2/model_zoo/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-PanopticSegmentation
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/LVISv1-InstanceSegmentation
      copying detectron2/model_zoo/configs/LVISv1-InstanceSegmentation/mask_rcnn_R_101_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/LVISv1-InstanceSegmentation
      copying detectron2/model_zoo/configs/LVISv1-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/LVISv1-InstanceSegmentation
      copying detectron2/model_zoo/configs/LVISv1-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/LVISv1-InstanceSegmentation
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/LVISv0.5-InstanceSegmentation
      copying detectron2/model_zoo/configs/LVISv0.5-InstanceSegmentation/mask_rcnn_R_101_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/LVISv0.5-InstanceSegmentation
      copying detectron2/model_zoo/configs/LVISv0.5-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/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.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/LVISv0.5-InstanceSegmentation
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/keypoint_rcnn_R_50_FPN_inference_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/mask_rcnn_R_50_FPN_training_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/mask_rcnn_R_50_C4_training_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/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.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/mask_rcnn_R_50_C4_GCV_instant_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/mask_rcnn_R_50_C4_instant_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/mask_rcnn_R_50_FPN_instant_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/panoptic_fpn_R_50_instant_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/retinanet_R_50_FPN_inference_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/mask_rcnn_R_50_DC5_inference_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/retinanet_R_50_FPN_instant_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/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.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/panoptic_fpn_R_50_training_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/rpn_R_50_FPN_instant_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/semantic_R_50_FPN_training_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/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.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/panoptic_fpn_R_50_inference_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/cascade_mask_rcnn_R_50_FPN_instant_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/fast_rcnn_R_50_FPN_inference_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/semantic_R_50_FPN_inference_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/rpn_R_50_FPN_inference_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/keypoint_rcnn_R_50_FPN_instant_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/keypoint_rcnn_R_50_FPN_training_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/mask_rcnn_R_50_C4_inference_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/semantic_R_50_FPN_instant_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/mask_rcnn_R_50_FPN_inference_acc_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      copying detectron2/model_zoo/configs/quick_schedules/fast_rcnn_R_50_FPN_instant_test.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/quick_schedules
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Cityscapes
      copying detectron2/model_zoo/configs/Cityscapes/mask_rcnn_R_50_FPN.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Cityscapes
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x_giou.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_C4_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_1x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_DC5_3x.yaml -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/Misc/mmdet_mask_rcnn_R_50_FPN_1x.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/Misc/torchvision_imagenet_R_50.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/Misc
      copying detectron2/model_zoo/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Keypoints
      copying detectron2/model_zoo/configs/COCO-Detection/fcos_R_50_FPN_1x.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      copying detectron2/model_zoo/configs/COCO-Detection/retinanet_R_50_FPN_1x.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-Detection
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common
      copying detectron2/model_zoo/configs/common/coco_schedule.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common
      copying detectron2/model_zoo/configs/common/train.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common
      copying detectron2/model_zoo/configs/common/optim.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/models
      copying detectron2/model_zoo/configs/common/models/panoptic_fpn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/models
      copying detectron2/model_zoo/configs/common/models/keypoint_rcnn_fpn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/models
      copying detectron2/model_zoo/configs/common/models/mask_rcnn_vitdet.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/models
      copying detectron2/model_zoo/configs/common/models/fcos.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/models
      copying detectron2/model_zoo/configs/common/models/mask_rcnn_c4.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/models
      copying detectron2/model_zoo/configs/common/models/retinanet.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/models
      copying detectron2/model_zoo/configs/common/models/cascade_rcnn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/models
      copying detectron2/model_zoo/configs/common/models/mask_rcnn_fpn.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/models
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/data
      copying detectron2/model_zoo/configs/common/data/coco.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/data
      copying detectron2/model_zoo/configs/common/data/constants.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/data
      copying detectron2/model_zoo/configs/common/data/coco_panoptic_separated.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/data
      copying detectron2/model_zoo/configs/common/data/coco_keypoint.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/common/data
      copying detectron2/model_zoo/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-PanopticSegmentation
      creating build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_R_101_FPN_200ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_R_50_FPN_50ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_100ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_400ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_400ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_R_50_FPN_200ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_100ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_R_50_FPN_100ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_200ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_R_50_FPN_400ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_R_101_FPN_400ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_R_101_FPN_100ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_200ep_LSJ.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/new_baselines
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_regnetx_4gf_dds_fpn_1x.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_regnety_4gf_dds_fpn_1x.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      copying detectron2/model_zoo/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x.py -> build/lib.macosx-10.9-universal2-cpython-311/detectron2/model_zoo/configs/COCO-InstanceSegmentation
      running build_ext
      building 'detectron2._C' extension
      creating build/temp.macosx-10.9-universal2-cpython-311
      creating build/temp.macosx-10.9-universal2-cpython-311/private
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/box_iou_rotated
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/cocoeval
      creating build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/nms_rotated
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc -I/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include -I/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/TH -I/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/THC -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp -o build/temp.macosx-10.9-universal2-cpython-311/private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:2:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorUtils.h:5:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:28:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/c10/util/OptionalArrayRef.h:159:34: error: 'value' is unavailable: introduced in macOS 10.13
          return wrapped_opt_array_ref.value();
                                       ^
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/c10/util/OptionalArrayRef.h:222:13: note: in instantiation of member function 'c10::OptionalArrayRef<long long>::value' requested here
        return a1.value() == other;
                  ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1005:33: note: 'value' has been explicitly marked unavailable here
          constexpr value_type const& value() const&
                                      ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:2:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorUtils.h:5:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:31:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/CheckMemoryFormat.h:11:35: error: 'value' is unavailable: introduced in macOS 10.13
            options.requires_grad_opt().value() == false,
                                        ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1023:28: note: 'value' has been explicitly marked unavailable here
          constexpr value_type&& value() &&
                                 ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:2:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorUtils.h:5:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:33:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/DeprecatedTypeProperties.h:110:34: error: 'value' is unavailable: introduced in macOS 10.13
            Device device = device_opt.value();
                                       ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1014:27: note: 'value' has been explicitly marked unavailable here
          constexpr value_type& value() &
                                ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:2:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorUtils.h:5:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/Tensor.h:3:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:442:26: error: 'value' is unavailable: introduced in macOS 10.13
            TORCH_CHECK(inputs.value().size() > 0, "'inputs' argument to backward cannot be empty")
                               ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1014:27: note: 'value' has been explicitly marked unavailable here
          constexpr value_type& value() &
                                ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:2:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorUtils.h:5:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/Tensor.h:3:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:443:30: error: 'value' is unavailable: introduced in macOS 10.13
            this->_backward(inputs.value(), gradient, retain_graph, create_graph);
                                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1014:27: note: 'value' has been explicitly marked unavailable here
          constexpr value_type& value() &
                                ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:2:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorUtils.h:5:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:28:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/c10/util/OptionalArrayRef.h:131:34: error: 'value' is unavailable: introduced in macOS 10.13
          return wrapped_opt_array_ref.value();
                                       ^
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:5606:152: note: in instantiation of member function 'c10::OptionalArrayRef<long long>::operator*' requested here
          return at::_ops::to_padded_tensor::call(const_cast<Tensor&>(*this), padding, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt);
                                                                                                                                                             ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1014:27: note: 'value' has been explicitly marked unavailable here
          constexpr value_type& value() &
                                ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1551:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:12:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/jit_type.h:662:24: error: 'value' is unavailable: introduced in macOS 10.13
            prod *= shape[i].value();
                             ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1005:33: note: 'value' has been explicitly marked unavailable here
          constexpr value_type const& value() const&
                                      ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1551:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:12:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/jit_type.h:1512:28: error: 'value' is unavailable: introduced in macOS 10.13
          const auto& n = name().value();
                                 ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1005:33: note: 'value' has been explicitly marked unavailable here
          constexpr value_type const& value() const&
                                      ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1551:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:12:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/jit_type.h:2129:20: error: 'value' is unavailable: introduced in macOS 10.13
          return reason_.value();
                         ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1005:33: note: 'value' has been explicitly marked unavailable here
          constexpr value_type const& value() const&
                                      ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1551:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:16:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/c10/core/DeviceGuard.h:3:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h:230:33: error: 'value' is unavailable: introduced in macOS 10.13
            guard_.emplace(device_opt.value());
                                      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1014:27: note: 'value' has been explicitly marked unavailable here
          constexpr value_type& value() &
                                ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1551:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:16:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/c10/core/DeviceGuard.h:3:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h:242:39: error: 'value' is unavailable: introduced in macOS 10.13
            guard_.emplace(device_index_opt.value());
                                            ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1014:27: note: 'value' has been explicitly marked unavailable here
          constexpr value_type& value() &
                                ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1551:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:20:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/c10/core/StreamGuard.h:3:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/c10/core/impl/InlineStreamGuard.h:146:33: error: 'value' is unavailable: introduced in macOS 10.13
            guard_.emplace(stream_opt.value());
                                      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1014:27: note: 'value' has been explicitly marked unavailable here
          constexpr value_type& value() &
                                ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:27:38: error: 'value' is unavailable: introduced in macOS 10.13
        return t.has_value() ? device_of(t.value()) : c10::nullopt;
                                           ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1005:33: note: 'value' has been explicitly marked unavailable here
          constexpr value_type const& value() const&
                                      ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:18:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorIndexing.h:13:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/NativeFunctions.h:37:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ops/_addmm_activation_native.h:15:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ops/_addmm_activation_meta.h:12:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorIterator.h:311:34: error: 'value' is unavailable: introduced in macOS 10.13
          return operands_[arg].device.value();
                                       ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1005:33: note: 'value' has been explicitly marked unavailable here
          constexpr value_type const& value() const&
                                      ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:18:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorIndexing.h:48:37: error: 'value' is unavailable: introduced in macOS 10.13
            step_ = std::move(step_index).value();
                                          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1023:28: note: 'value' has been explicitly marked unavailable here
          constexpr value_type&& value() &&
                                 ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:18:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorIndexing.h:56:39: error: 'value' is unavailable: introduced in macOS 10.13
            start_ = std::move(start_index).value();
                                            ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1023:28: note: 'value' has been explicitly marked unavailable here
          constexpr value_type&& value() &&
                                 ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:18:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorIndexing.h:62:37: error: 'value' is unavailable: introduced in macOS 10.13
            stop_ = std::move(stop_index).value();
                                          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1023:28: note: 'value' has been explicitly marked unavailable here
          constexpr value_type&& value() &&
                                 ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:3:
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/ATen.h:18:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorIndexing.h:243:25: error: 'value' is unavailable: introduced in macOS 10.13
                !(maybe_index.value() == 0 && dim == 0 && self_sizes->empty()),
                              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1014:27: note: 'value' has been explicitly marked unavailable here
          constexpr value_type& value() &
                                ^
      In file included from /private/var/folders/zh/g93pmx9d149g67sv7nxzytqh0000gn/T/pip-req-build-nqwbbqkd/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:2:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/TensorUtils.h:5:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/Tensor.h:3:
      In file included from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:28:
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/c10/util/OptionalArrayRef.h:155:34: error: 'value' is unavailable: introduced in macOS 10.13
          return wrapped_opt_array_ref.value();
                                       ^
      /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/include/ATen/WrapDimUtilsMulti.h:26:26: note: in instantiation of member function 'c10::OptionalArrayRef<long long>::value' requested here
          auto dims = opt_dims.value();
                               ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1014:27: note: 'value' has been explicitly marked unavailable here
          constexpr value_type& value() &
                                ^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      20 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for detectron2
  Running setup.py clean for detectron2
Failed to build detectron2
ERROR: Could not build wheels for detectron2, which is required to install pyproject.toml-based projects

@ziyu-zhang
Copy link

Same issue. Did you guys figure out?

@lavanya-vaddavalli
Copy link

Same issue, how to fix this?

@inmani
Copy link

inmani commented Apr 15, 2024

This was addressed in a separate issue: #5216

Solution (which also worked for me) -> Run export MACOSX_DEPLOYMENT_TARGET=14.2 (with correct Mac version) before installing detectron2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@ziyu-zhang @lavanya-vaddavalli @inmani @fishspeech @valentinamisi and others