Having trouble with the cookbook approach to SD
What does the community say?I sat down to get some work done and tried what I shall call the cook book approach to using Stable Diffusion.  What I found is the motivation for this post.First a bit of background:I wanted to make a LoRA.  I tried kohya_ss.  I cloned it, ran it as per instruction.  It did not work right out of the box.  It threw errors.  It seemed to have trouble interacting with the file system, ignored my GPU.  I could go on.I also tried Automatic1111, ComfyUI–not for LoRA, but just to try–all with similar results.  All left me with the prospect of debugging someone else’s codebase.Are others having similar experiences?As it stands, I am looking to take another direction, which means breaking away from Python.  It has been said that such a thing is too difficult.  But it is also said not really so difficult.What does the community say?
2024-12-17T13:27:09Z
If you are in an environment where A1111  WebUI or ComfyUI does not work, it is highly likely that your GPU is not a standard one or that you do not have enough VRAM. This is a hardware problem, so it is a problem that cannot be helped because the PC’s performance is insufficient.If your computer is weak, you won’t be able to complete the calculations.Here, you have two options: either buy a better PC, or rent a cloud service for free or for a fee. If you choose the latter, Hugging Face, Google Colab Free, Lightning, etc. are all good options.
2024-12-17T13:33:59Z
I have a MacStudio.  It should have plenty of GPU.  I have 64GB of ram.Leaves me thinking there must be something else.I posed my question because when I try doing similar things with Julia–so far so good.
2024-12-17T13:35:18Z
Is your GPU something other than an nVidia product? If so, I may be able to suggest a solution.
2024-12-17T13:45:38Z
There is nothing Nvidia within miles of me.  M1 has 64 cores with 128GB shared memory.  I do not think we have a hardware constraint.  Also, I do not think the difficulties with the file system are hardware.  If I were to venture a SWAG, I would cast my suspicions on the gradio package.  The buttons that are supposed to open a file dialog do not function.  If I paste in a path, the code cannot find it and throws errors.  I can go on.Thanks for listening.
2024-12-17T14:10:21Z
Wait a minute. That’s the cause, and there must be some way to avoid it.The WebUI and many other programs won’t work properly unless with nVidia GPU, and if not nVidia, special settings are required. Let me do a quick search.
2024-12-17T14:13:38Z
John, you are being most helpful.  I shall get back.  After I complete my day of paying work.
2024-12-17T14:17:46Z
If you search by Apple Sillicon + software name, you’ll find the know-how.GitHubInstallation on Apple SiliconStable Diffusion web UI. Contribute to AUTOMATIC1111/stable-diffusion-webui development by creating an account on GitHub.gist.github.comhttps://gist.github.com/jstayco/9f5733f05b9dc29de95c4056a023d645README.md### MacOS (Apple Silicon)
In the terminal, run

```
git clone https://github.com/bmaltais/kohya_ss.git
cd kohya_ss
# Patch these files into top level/root project folder
# Then run the next command
bash ./macos.sh
```This file has been truncated.show originalmacos_setup.sh#!/bin/bash
# The initial setup script to prep the environment on macOS
# xformers has been omitted as that is for Nvidia GPUs only

if ! command -v brew >/dev/null; then
  echo "Please install homebrew first. This is a requirement for the remaining setup."
  echo "You can find that here: https://brew.sh"
  exit 1
fiThis file has been truncated.show originalrequirements.txtaccelerate==0.15.0
albumentations==1.3.0
altair==4.2.2
bitsandbytes==0.35.0
dadaptation==1.5
diffusers[torch]==0.10.2
easygui==0.98.3
einops==0.6.0
ftfy==6.1.1
gradio==3.19.1; sys_platform != 'darwin'This file has been truncated.show originalIt would be easier if we could use ZULDA (CUDA emulator) like AMD’s GPU…I don’t know if it supports Apple Sillicon at this point.github.comGitHub - vosen/ZLUDA: CUDA on non-NVIDIA GPUsCUDA on non-NVIDIA GPUs