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

Error while installing ODISE #43

Closed zhizdev closed 6 months ago

zhizdev commented 6 months ago

I am running into many errors while installing ODISE. Mainly with compiling Mask2Former.

Errors include:

 fatal error: 'crypt.h' file not found
 fatal error: 'cusparse.h' file not found

Here is my workaround (or at least attempted).

Install Mask2former from their repo (https://github.com/facebookresearch/Mask2Former/blob/main/INSTALL.md) -- this is the main issue. However make sure you use python 3.9.

Once you are able to install Detectron2 and Mask2former. Then you should be set for ODISE.

I had to append CUDA_HOME="/usr/local/cuda-11.3" pip install -e . CUDA_HOME to install detectron2 and mask2former inside my conda environment.

zhizdev commented 6 months ago

nvm closing this

DO NOT INSTALL Detectron2 and Mask2former from source. Install it with this repo.

zhizdev commented 6 months ago

This seems like an important fix pip install numpy==1.23.1