NVlabs / ODISE

Official PyTorch implementation of ODISE: Open-Vocabulary Panoptic Segmentation with Text-to-Image Diffusion Models [CVPR 2023 Highlight]
https://arxiv.org/abs/2303.04803
Other
845 stars 45 forks source link

Setup issue with mask2former #19

Open ziqingcheryl opened 1 year ago

ziqingcheryl commented 1 year ago
  running build_ext
  building 'MultiScaleDeformableAttention' extension
  Emitting ninja build file //ODISE/third_party/Mask2Former/build/temp.linux-x86_64-cpython-39/build.ninja...
  error: [Errno 2] No such file or directory: '//ODISE/third_party/Mask2Former/build/temp.linux-x86_64-cpython-39/build.ninja'
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> mask2former

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

Is the error related to ninja build?

Xuanbai-Chen commented 1 year ago

same problem!

Xuanbai-Chen commented 1 year ago

same problem!

I solved the problem using https://github.com/ninja-build/ninja/issues/1463#issuecomment-1119514124

gaomingqi commented 1 year ago

same problem. I solved it by manually creating the temporary directory. For example, in @ziqingcheryl 's case:

mkdir //ODISE/third_party/Mask2Former/build/temp.linux-x86_64-cpython-39

, and then run pip install -e . again. don't know why, but it indeed works in my case.

LiWentomng commented 1 year ago

same problem. I solved it by manually creating the temporary directory. For example, in @ziqingcheryl 's case:

mkdir //ODISE/third_party/Mask2Former/build/temp.linux-x86_64-cpython-39

, and then run pip install -e . again. don't know why, but it indeed works in my case.

It works. Thanks.

YangLi309 commented 5 months ago

same problem. I solved it by manually creating the temporary directory. For example, in @ziqingcheryl 's case:

mkdir //ODISE/third_party/Mask2Former/build/temp.linux-x86_64-cpython-39

, and then run pip install -e . again. don't know why, but it indeed works in my case.

Appreciate your solution. It works on my Linux workstation as well!

ruiguoguo commented 1 month ago

i tried this, and worked for me ` cd ODISE/rhird_party/Mask2Former

python setup.py install

cd ODISE

pip install -e . `