diff --git a/README-Mac-MPS.md b/README-Mac-MPS.md index 04d513cf8c2..99d3181f2e7 100644 --- a/README-Mac-MPS.md +++ b/README-Mac-MPS.md @@ -28,10 +28,28 @@ First get the weights checkpoint download started - it's big: While that is downloading, open Terminal and run the following commands one at a time. -``` +```bash # install brew (and Xcode command line tools): /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +# +# Now there are two different routes to get the Python (miniconda) environment up and running: +# 1. Alongside pyenv +# 2. No pyenv +# +# If you don't know what we are talking about, choose 2. +# +# NOW EITHER DO +# 1. Installing alongside pyenv + +brew install pyenv-virtualenv # you might have this from before, no problem +pyenv install anaconda3-2022.05 +pyenv virtualenv anaconda3-2022.05 +eval "$(pyenv init -)" +pyenv activate anaconda3-2022.05 + +# OR, +# 2. Installing standalone # install python 3, git, cmake, protobuf: brew install cmake protobuf rust @@ -39,6 +57,10 @@ brew install cmake protobuf rust curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o Miniconda3-latest-MacOSX-arm64.sh /bin/bash Miniconda3-latest-MacOSX-arm64.sh + +# EITHER WAY, +# continue from here + # clone the repo git clone https://github.com/lstein/stable-diffusion.git cd stable-diffusion diff --git a/ldm/simplet2i.py b/ldm/simplet2i.py index 3b4cf6c54dd..c67cf0052c3 100644 --- a/ldm/simplet2i.py +++ b/ldm/simplet2i.py @@ -324,7 +324,7 @@ def process_image(image,seed): self.model.encode_first_stage(init_image) ) # move to latent space - print(f' DEBUG: seed at make_image time ={seed}') + #print(f' DEBUG: seed at make_image time ={seed}') make_image = self._img2img( prompt, steps=steps, @@ -378,7 +378,7 @@ def process_image(image,seed): if self.device.type == 'mps': x_T = self._get_noise(init_latent,width,height) # make_image will do the equivalent of get_noise itself - print(f' DEBUG: seed at make_image() invocation time ={seed}') + #print(f' DEBUG: seed at make_image() invocation time ={seed}') image = make_image(x_T) results.append([image, seed]) if image_callback is not None: