glonlas / Stable-Diffusion-Apple-Silicon-M1-Install

Stable Diffusion Install script with GPU support for Apple Silicon M1/M2
48 stars 5 forks source link

0.1.2 - Installation failed #8

Closed e-oz closed 1 year ago

e-oz commented 1 year ago

Describe your environment

M1 Pro 32Gb 10 CPU/16 GPU Ventura 13.0 Beta 22A5352e

Describe the problem:

Installation failed 🥲

Relevant code exceptions or logs

Log ``` +-----------------------------------------+ | | -e | Stable Diffusion Apple Silicon | -e | Install script | | | +-----------------------------------------+ Script Version: 0.1.2 Source of the script: https://github.com/glonlas/Stable-Diffusion-Apple-Silicon-M1-Install ./install-stable-diffusion-apple-silicon.sh: line 169: conda: command not found -e Stable Diffusion is not installed Do you want to install Stable Diffusion? [Y/n]: y -e Starting installation -e 1. Install missing dependencies -e - Install Miniconda -e 2. Download Stable-diffusion project and Model weights mkdir: /Users/oz/stable-diffusion: File exists -e - Download LSTEIN Project stable-diffusion.zip [ <=> ] 48.43M 15.5MB/s in 3.1s -e - Install LSTEIN Project mv: rename stable-diffusion-main to stable-diffusion/stable-diffusion-main: No such file or directory -e - Download LDM Model model.ckpt 100%[============================================================>] 3.97G 26.2MB/s in 2m 40s -e 3. Download GFPGAN project and Model weights ./install-stable-diffusion-apple-silicon.sh: line 173: conda: command not found ./install-stable-diffusion-apple-silicon.sh: line 174: /etc/profile.d/conda.sh: No such file or directory ```
Attempt to install conda with brew ``` oz@Avalon Applications % brew install conda Warning: No available formula with the name "conda". Did you mean confd or conan? ==> Searching for similarly named formulae... These similarly named formulae were found: confd conan To install one of them, run (for example): brew install confd ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching taps on GitHub... Error: No formulae found in taps. oz@Avalon Applications % ```
glonlas commented 1 year ago

Thanks for the detailed information. I will look at why does it fail.

glonlas commented 1 year ago

@e-oz Could you try with the latest main branch? It should have been fixed.

e-oz commented 1 year ago
+-----------------------------------------+
|                                         |
-e |     Stable Diffusion Apple Silicon      |
-e |             Install script              |
|                                         |
+-----------------------------------------+
Script Version: 0.1.2
Source of the script: https://github.com/glonlas/Stable-Diffusion-Apple-Silicon-M1-Install
./install-stable-diffusion-apple-silicon.sh: line 165: conda: command not found

-e Stable Diffusion is not installed
Do you want to install Stable Diffusion? [Y/n]: y
-e Starting installation

-e 1. Install missing dependencies 
-e - Brew already installed
-e - unzip already installed
-e - wget already installed
-e - Install Miniconda

-e 2. Download Stable-diffusion project and Model weights 
-e - Download InvokeAI Project
InvokeAI.zip                          [                                <=>                          ]  48.43M  9.00MB/s    in 6.3s    
-e - Install InvokeAi Project
-e - Download LDM Model
model.ckpt                        100%[============================================================>]   3.97G  17.9MB/s    in 3m 51s  
-e - Download GFPGAN Model
GFPGANv1.4.pth                    100%[============================================================>] 332.48M  8.34MB/s    in 36s     
-e - Download CodeFormer Model
codeformer.pth                    100%[============================================================>] 359.19M  22.4MB/s    in 19s     

-e 3. Create Conda Env 'ldm' 
./install-stable-diffusion-apple-silicon.sh: line 165: conda: command not found
-e  - Creating the new Conda env ldm
./install-stable-diffusion-apple-silicon.sh: line 220: conda: command not found
./install-stable-diffusion-apple-silicon.sh: line 169: conda: command not found
./install-stable-diffusion-apple-silicon.sh: line 170: /etc/profile.d/conda.sh: No such file or directory
oz@Avalon Applications %
glonlas commented 1 year ago

I wonder which interpreter it is using when you execute your script. It seems this is using sh instead of bash. Can you try bash ./install-stable-diffusion-apple-silicon.sh and see if it works? The -e should also disappears.