From c34e223a8742177de0c07ef0276502335bdc9ad9 Mon Sep 17 00:00:00 2001 From: Jeffreytsai1004 Date: Sat, 22 Feb 2025 03:02:43 +0800 Subject: [PATCH] Update install.bat --- install.bat | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/install.bat b/install.bat index de8bb2f..b1cbfbc 100644 --- a/install.bat +++ b/install.bat @@ -71,17 +71,16 @@ REM Create matte_anything environment -c pytorch -c nvidia -c conda-forge -r "%~dp0\" -y @CALL "%~dp0condabin\micromamba.bat" activate matte_anything @CALL cd %PROJECT_DIR%\ext\Matte-Anything\ -@CALL python -m pip install git+https://github.com/facebookresearch/segment-anything.git -@CALL python -m pip install git+https://github.com/facebookresearch/detectron2.git +@CALL git clone https://github.com/facebookresearch/segment-anything.git +@CALL cd %PROJECT_DIR%\ext\Matte-Anything\segment-anything +@CALL python -m pip install -e . +@CALL git clone https://github.com/conansherry/detectron2.git +@CALL cd %PROJECT_DIR%\ext\Matte-Anything\detectron2 +@CALL python setup.py build develop @CALL cd %PROJECT_DIR%\ext\Matte-Anything\GroundingDINO @CALL python -m pip install -e . -@CALL python -m pip install supervision==0.22.0 +@CALL copy %PROJECT_DIR%\resource\Matte-Anything\pretrained\* %PROJECT_DIR%\ext\Matte-Anything\pretrained\ @CALL cd %PROJECT_DIR%\ext\Matte-Anything -@CALL mkdir pretrained -@CALL cd pretrained -@CALL curl -L -o sam_vit_h_4b8939.pth https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth -@CALL curl -L -o groundingdino_swint_ogc.pth https://github.com/IDEA-Research/GroundingDINO/releases/download/v0.1.0-alpha/groundingdino_swint_ogc.pth -@CALL python -m gdown 1d97oKuITCeWgai2Tf3iNilt6rMSSYzkW @CALL "%~dp0condabin\micromamba.bat" deactivate