#!/usr/bin/bash # Install detectron2 pip install git+https://github.com/facebookresearch/detectron2.git@v0.6 # Compile ms_deform_attn op cd annotator/entityseg/mask2former/modeling/pixel_decoder/ops sh make.sh # download models mkdir .cache git clone https://huggingface.co/nowsyn/anycontrol .cache/anycontrol ln -s `pwd`/.cache/anycontrol/ckpts ./ckpts ln -s `pwd`/.cache/anycontrol/annotator/ckpts ./annotator/ckpts