Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

img2img for intel mac #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

irgolic
Copy link

@irgolic irgolic commented Sep 7, 2022

Hey, thanks for this repo. txt2img runs fine on my 2019 Intel MBP with an AMD Radeon PRO 5500M.

I've been trying to get img2img to work though. I've adjusted the files similarly to how you adjusted them for txt2img, and I get through decoding the image to 100%... Then I get a segfault.

Decoding image:  95%|█████████▌| 38/40 [01:15<00:07,  3.83s/it]

Decoding image:  98%|█████████▊| 39/40 [01:20<00:04,  4.09s/it]

Decoding image: 100%|██████████| 40/40 [01:25<00:00,  2.13s/it]
Fatal Python error: Segmentation fault

Thread 0x0000700007774000 (most recent call first):
  File "/usr/local/Caskroom/miniconda/base/envs/ldm2/lib/python3.8/threading.py", line 306 in wait
  File "/usr/local/Caskroom/miniconda/base/envs/ldm2/lib/python3.8/threading.py", line 558 in wait
  File "/usr/local/Caskroom/miniconda/base/envs/ldm2/lib/python3.8/site-packages/tqdm/_monitor.py", line 60 in run
  File "/usr/local/Caskroom/miniconda/base/envs/ldm2/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/local/Caskroom/miniconda/base/envs/ldm2/lib/python3.8/threading.py", line 890 in _bootstrap

Current thread 0x0000000117190600 (most recent call first):
  File "/Users/.../stable-diffusion-intel-mac/scripts/img2img.py", line 272 in main
  File "/Users/.../stable-diffusion-intel-mac/scripts/img2img.py", line 296 in <module>
  File "/usr/local/Caskroom/miniconda/base/envs/ldm2/lib/python3.8/runpy.py", line 87 in _run_code
  File "/usr/local/Caskroom/miniconda/base/envs/ldm2/lib/python3.8/runpy.py", line 194 in _run_module_as_main

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Any ideas on how to get it to work? I should probably just rent a CUDA GPU, but it'd be nice to get this running locally on a laptop.

@diegoboston
Copy link

This is amazing. I'm happy I can generate images locally!

I am also trying to get img2img and inpaint to work on my laptop (MacBook Pro (16-inch, 2019), 2.4 GHz 8-Core Intel Core i9, Intel UHD Graphics 630 1536 MB), but no luck. I attempted multiple things to replace CUDA with MPS and CPU. BTW, shouldn't inpaint take a prompt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants