Minor fixes to 0_setup.sh
This commit is contained in:
+4
-4
@@ -10,13 +10,13 @@ is_arm64() {
|
||||
[ "$(uname -m)" == "arm64" ]
|
||||
}
|
||||
|
||||
[ is_arm64 ] && echo "Running on Apple M1 chip"
|
||||
is_arm64 && echo "Running on Apple M1 chip"
|
||||
|
||||
if [ ! -d .dfl/DeepFaceLab ]; then
|
||||
echo "Cloning DeepFaceLab"
|
||||
git clone --no-single-branch --depth 1 "https://github.com/chychkan/DeepFaceLab.git" .dfl/DeepFaceLab
|
||||
|
||||
if [ is_arm64 ]; then
|
||||
if is_arm64; then
|
||||
(cd .dfl/DeepFaceLab; git checkout support-arm64)
|
||||
fi
|
||||
fi
|
||||
@@ -38,7 +38,7 @@ if [[ ! -z "$version" && -f "requirements_$version.txt" ]]; then
|
||||
fi
|
||||
|
||||
architecture_suffix=''
|
||||
if [ is_arm64 ] && [ -f "requirements${version_suffix}_arm64.txt" ]; then
|
||||
if is_arm64 && [ -f "requirements${version_suffix}_arm64.txt" ]; then
|
||||
architecture_suffix="_arm64"
|
||||
fi
|
||||
|
||||
@@ -46,7 +46,7 @@ reqs_file="requirements${version_suffix}${architecture_suffix}.txt"
|
||||
|
||||
echo "Using $reqs_file for $(python -V)"
|
||||
|
||||
if [ is_arm64 ]; then
|
||||
if is_arm64; then
|
||||
if [[ -z "$(brew ls --versions hdf5)" ]]; then
|
||||
echo "ERROR: HDF5 needs to be installed to run DeepFaceLab on M1 chip."
|
||||
echo "You can install it with 'brew install hdf5'. For more details, see https://formulae.brew.sh/formula/hdf5"
|
||||
|
||||
Reference in New Issue
Block a user