2025-02-17 00:55:28 +08:00
|
|
|
@echo off
|
2025-02-17 23:40:30 +08:00
|
|
|
|
2025-02-18 22:12:39 +08:00
|
|
|
@CALL SET PROJECT_DIR=%~dp0
|
2025-02-19 01:56:32 +08:00
|
|
|
|
|
|
|
@CALL python -m pip install --upgrade pip
|
|
|
|
@CALL python -m pip install gdown
|
|
|
|
|
2025-02-20 03:10:23 +08:00
|
|
|
@CALL mkdir resource\NeuralHaircut\PIXIE
|
|
|
|
@CALL mkdir resource\hyperIQA\pretrained
|
|
|
|
@CALL mkdir resource\Matte-Anything\pretrained
|
|
|
|
@CALL mkdir resource\openpose
|
2025-02-19 01:56:32 +08:00
|
|
|
|
2025-02-20 03:10:23 +08:00
|
|
|
echo "Downloading NeuralHaircut..."
|
|
|
|
@CALL cd resource\NeuralHaircut
|
2025-02-19 01:56:32 +08:00
|
|
|
@CALL python -m gdown --folder https://drive.google.com/drive/folders/1TCdJ0CKR3Q6LviovndOkJaKm8S1T9F_8
|
2025-02-20 03:10:23 +08:00
|
|
|
@CALL cd ..\..
|
|
|
|
@CALL cd resource\NeuralHaircut\pretrained_models\diffusion_prior
|
2025-02-19 01:56:32 +08:00
|
|
|
@CALL python -m gdown 1_9EOUXHayKiGH5nkrayncln3d6m1uV7f
|
2025-02-20 03:10:23 +08:00
|
|
|
@CALL cd ..\..\..\..
|
|
|
|
echo "Downloading PIXIE..."
|
|
|
|
@CALL cd resource\NeuralHaircut\PIXIE
|
2025-02-19 01:56:32 +08:00
|
|
|
@CALL python -m gdown 1mPcGu62YPc4MdkT8FFiOCP629xsENHZf
|
2025-02-20 03:10:23 +08:00
|
|
|
@CALL tar -xvzf pixie_data.tar.gz
|
|
|
|
@CALL cd ..\..\..
|
|
|
|
echo "Downloading hyperIQA..."
|
|
|
|
@CALL cd resource\hyperIQA\pretrained
|
2025-02-19 01:56:32 +08:00
|
|
|
@CALL python -m gdown 1OOUmnbvpGea0LIGpIWEbOyxfWx6UCiiE
|
2025-02-20 03:10:23 +08:00
|
|
|
@CALL cd ..\..
|
2025-02-19 01:56:32 +08:00
|
|
|
|
2025-02-20 03:10:23 +08:00
|
|
|
echo "Downloading Matte-Anything..."
|
|
|
|
@CALL cd resource\Matte-Anything\pretrained
|
2025-02-19 01:56:32 +08:00
|
|
|
@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
|
2025-02-20 03:10:23 +08:00
|
|
|
@CALL cd ..\..
|
2025-02-19 01:56:32 +08:00
|
|
|
|
2025-02-20 03:10:23 +08:00
|
|
|
echo "Downloading openpose..."
|
|
|
|
@CALL cd resource\openpose
|
2025-02-19 01:56:32 +08:00
|
|
|
@CALL python -m gdown 1Yn03cKKfVOq4qXmgBMQD20UMRRRkd_tV
|
|
|
|
@CALL tar -xvzf models.tar.gz
|
2025-02-20 03:10:23 +08:00
|
|
|
@CALL cd ..\..
|
|
|
|
|
|
|
|
echo "Download complete"
|
2025-02-19 01:56:32 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|