export CC=/usr/bin/gcc-11 # this ensures that gcc 11 is being used for compilation cd models/GroundingDINO/ops python setup.py build install python test.py # should result in 6 lines of * True pip install git+https://github.com/facebookresearch/segment-anything.git cd ../../../