Update install.bat

This commit is contained in:
Jeffreytsai1004 2025-02-22 03:02:43 +08:00
parent f65835b833
commit c34e223a87

View File

@ -71,17 +71,16 @@ REM Create matte_anything environment
-c pytorch -c nvidia -c conda-forge -r "%~dp0\" -y -c pytorch -c nvidia -c conda-forge -r "%~dp0\" -y
@CALL "%~dp0condabin\micromamba.bat" activate matte_anything @CALL "%~dp0condabin\micromamba.bat" activate matte_anything
@CALL cd %PROJECT_DIR%\ext\Matte-Anything\ @CALL cd %PROJECT_DIR%\ext\Matte-Anything\
@CALL python -m pip install git+https://github.com/facebookresearch/segment-anything.git @CALL git clone https://github.com/facebookresearch/segment-anything.git
@CALL python -m pip install git+https://github.com/facebookresearch/detectron2.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 cd %PROJECT_DIR%\ext\Matte-Anything\GroundingDINO
@CALL python -m pip install -e . @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 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 @CALL "%~dp0condabin\micromamba.bat" deactivate