Skip to content

Windows support for bash files? #37

@SoftologyPro

Description

@SoftologyPro

Can the bash files be converted to compatible python commands or some other Windows compatible format?

For other Windows users, I managed to get all of UniRig installed with this batch file. Save into an empty directory, command line into the directory and run this install.bat Tested with Python 3.10.x and CUDA 12.8

@echo off

cd
echo *** Deleting UniRig directory if it exists
if exist UniRig\. rd /S /Q UniRig

echo *** Cloning UniRig repository
git clone https://github.com/VAST-AI-Research/UniRig
cd UniRig

echo *** Creating venv
python -m venv venv
call venv\scripts\activate.bat

echo *** Upgrading pip
python -m pip install -U pip
python -m pip install pip==24.0
pip install wheel==0.45.1
pip install setuptools==65.5.0

echo *** Removing bpy from requirements.txt
type requirements.txt | findstr /v bpy > stripped.txt
del requirements.txt
ren stripped.txt requirements.txt

echo *** Removing fast-simplification from requirements.txt
type requirements.txt | findstr /v fast-simplification > stripped.txt
del requirements.txt
ren stripped.txt requirements.txt

echo *** Removing flash_attn from requirements.txt
type requirements.txt | findstr /v flash_attn > stripped.txt
del requirements.txt
ren stripped.txt requirements.txt

echo *** Installing torch
pip install torch torchvision

echo *** Installing requirements.txt
pip install -r requirements.txt

echo *** Installing other requirements
pip install https://huggingface.co/datasets/Softology-Pro/VoC/resolve/main/flash_attn-2.7.4.post1-cp310-cp310-win_amd64.whl
pip install https://github.com/pyvista/fast-simplification/releases/download/v0.1.11/fast_simplification-0.1.11-cp310-cp310-win_amd64.whl
pip install bpy
pip install spconv-cu124
pip install torch-scatter torch_cluster -f https://data.pyg.org/whl/torch-2.7.0+cu128.html
pip install numpy==1.26.4

echo *** Installing GPU Torch
pip uninstall -y torch
pip uninstall -y torch
pip uninstall -y torch
pip install torch==2.7.0+cu128 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128

call venv\scripts\deactivate.bat
cd..

echo *** Finished UniRig install
echo.
echo *** Scroll up and check for errors.  Do not assume it worked.
pause

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions