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

GFPGAN - not working #2

Closed slk333 closed 2 years ago

slk333 commented 2 years ago

Hi, after fixing the install, I got this error

GFPGAN - Restoring Faces: xxxx : seed:3960875069
Downloading: "https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth" to /Users/antoineweber/stable-diffusion/stable-diffusion/gfpgan/weights/detection_Resnet50_Final.pth

100%|██████████████████████████████████████████████████████| 104M/104M [00:06<00:00, 16.0MB/s]
Downloading: "https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_parsenet.pth" to /Users/antoineweber/stable-diffusion/stable-diffusion/gfpgan/weights/parsing_parsenet.pth

100%|████████████████████████████████████████████████████| 81.4M/81.4M [00:04<00:00, 18.3MB/s]
[W NNPACK.cpp:51] Could not initialize NNPACK! Reason: Unsupported hardware.
Intel MKL FATAL ERROR: This system does not meet the minimum requirements for use of the Intel(R) Math Kernel Library.
The processor must support the Intel(R) Supplemental Streaming SIMD Extensions 3 (Intel(R) SSSE3) instructions.
The processor must support the Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) instructions.
The processor must support the Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.
/Users/antoineweber/opt/anaconda3/envs/ldm/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '
glonlas commented 2 years ago

Thank you for the report. You are the second user I see with this error. I will need to reproduce it and check what I did to make it work on my laptop.

To check, what Macbook do you use?

slk333 commented 2 years ago

hi, I use macbookpro m1 pro 14inch 16gb ram 16 core GPU

slk333 commented 2 years ago

I found this on the readme from Istein https://github.com/lstein/stable-diffusion/blob/main/README-Mac-MPS.md#the-processor-must-support-the-intel-bla-bla-bla

Screenshot:

Screenshot 2022-09-08 at 20 12 20

glonlas commented 2 years ago

Let me try to dd the CONDA_SUBDIR=osx-arm64 this will force to use the arm64 packages.

slk333 commented 2 years ago

im gonna try a new clean install with your latest commit.

slk333 commented 2 years ago

I think there is a critical error here:

4. Patching Apple Silicon support
Fix environment-mac-updated.yml
environment-mac-upd 100%[===================>]    1019  --.-KB/s    in 0s      
Fix GPFGAN upscaling
gfpgan_tools.py.pat 100%[===================>]   4,07K  --.-KB/s    in 0,001s  
error: ldm/gfpgan/gfpgan_tools.py: No such file or directory
simplet2i.py.patch  100%[===================>]   2,55K  --.-KB/s    in 0s      
simplet2i.py.patch:35: trailing whitespace.

error: ldm/simplet2i.py: No such file or directory
slk333 commented 2 years ago
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
python: can't open file '/Users/antoineweber/stable-diffusion/GFPGAN/setup.py': [Errno 2] No such file or directory
glonlas commented 2 years ago

I need to check that. Seems the Git patch could be applied anymore. I will dive deep into it.

One solution will be to switch to the development of Lstein project. I will see what’s the best option

slk333 commented 2 years ago

n/a

slk333 commented 2 years ago

Oops, I mistakened this issue with another one. Anyway, I installed using istein repo and it's now working there, especially gfpgan. only issue there is that they don't use realesrgan-ncnn-vulkan yet. Thanks for this repo it helped me for a while.