-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall
More file actions
executable file
·32 lines (30 loc) · 939 Bytes
/
install
File metadata and controls
executable file
·32 lines (30 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
(
if [ ! -d "ml-sharp" ]; then
git clone https://github.com/apple/ml-sharp || exit 1
fi
source ./detect-python
cd ml-sharp &&
pip --version &&
echo "Installing requirements with pip" &&
pip install -r requirements.txt &&
# Use subshell so that && is respected
(
if [[ -d "./Gaussian_Decimator" ]]; then
echo "Gaussian_Decimator already present"
else
echo "Installing Gaussian_Decimator" &&
git clone https://github.com/feel3x/Gaussian_Decimator || exit 1
fi
) &&
cd Gaussian_Decimator/ &&
echo "Installing torch-scatter" &&
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.8.0+cpu.html &&
echo "Installing dependencies for Gaussian_Decimator" &&
pip install -r requirements.txt &&
cd ../.. &&
mkdir -p input &&
mkdir -p output &&
echo "Folders created"
) || exit 1
echo "Great! You are ready to put .jpg files in ./input and run ./convert"