-
Notifications
You must be signed in to change notification settings - Fork 889
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
Documenting macOS setup with tauri and ComfyUI #104
Comments
I've downloaded |
After unpacking the All the |
As noted in the releases page, the only existing portable ComfyUI builds are packaged for Windows, and additional steps are needed for macOS/Linux systems for now. The Also note that the ComfyUI that is being installed is slightly modified, coming with an extra core node, and modifications to ComfyUI's frontend for ease of compatibility with StableStudio. |
My bad about not looking at the releases page. Maybe worth mentioning that in the main README also? 🤷♂️
That's pretty vague. Has anyone documented what that "custom work" entails? If not, I'm happy to do so. I've already set up the standalone ComfyUI, so it seems that I should be able to put the modified ComfyUI in the right place for StableStudio to find it, and be good to go... Or will I run into problems with StableStudio looking for embedded the Python stuff instead of using what is already globally installed? I'll give it a try. |
I answered my question. Looks like StableStudio/packages/stablestudio-ui/src-tauri/src/main.rs Lines 212 to 222 in f3b7d20
Might be nice to provide some documentation on how to set things up to use global |
Yeah, there's stuff going on in That's as far as I got yesterday. Rust it still erroring when I have it try to launch ComfyUI with my global Python. It's right at the end of the script, so almost there. I think I may have the directory nesting it expects off slightly. Will figure it out later today. |
Also, using port 5000 won't work for macOS (after Monterey) when a user has AirPlay on because its default receiver port is 5000. So, currently StableStudio/packages/stablestudio-ui/src-tauri/src/main.rs Lines 68 to 74 in f3b7d20
StableStudio/packages/stablestudio-ui/src-tauri/src/main.rs Lines 197 to 207 in f3b7d20
|
Thanks for this!
yes, as there is no packaged python build that was speculative.
Good catch, would be good to add some better port picking logic similar to how the app service works StableStudio/packages/stablestudio-ui/src-tauri/src/main.rs Lines 28 to 34 in f3b7d20
|
@KAJdev I now have everything setup so that StableStudio launches on macOS, using the custom ComfyUI instance that comes packaged in
|
@KAJdev Also, I had previously done the Apple Silicon specific setup advised by the ComfyUI README. What those steps do is set up the accelerated version of PyTorch for Apple M1/M2 and ensure that comfy is launched with the However, afaik using that version of PyTorch is not a hard requirement for running ComfyUI on macOS, but more of a best for performance setup. Maybe someone who has tried without it can confirm this for me? So, my question is do we try to bake those additional Apple-specific set up steps into |
I would be weary of this. Many people will either not have a correct Python version, not have the correct dependencies, or prefer to keep system-wide site-packages clean. A packaged venv for each OS is the best way to move forward in the long run.
interesting. I'm not sure why that would be happening but that seems like an easy fix
ideally, I would set up another job to package & serve comfyui specifically for macOS, and the installation would be no different from Windows. |
then intergrate ASDF so you do get the version you want so that it's not the system version of python: https://gist.github.com/airtonix/1031cd7b4e9745c73b385204f7a9688d |
Orrrr. you can integrate https://docs.tea.xyz/getting-started/install-tea#thats-not-all |
Is this something that's still on the horizon? I tried to build and run the dev of this today but unfortunately it couldn't find the comfy_ui_portable zip. Tried to paste the path into a browser and it gave me an access denied. |
Describe the bug
When my
tauri
app window is launched, the "Welcome to StableStudio" seems to be stuck on the "Downloading ComfyUI..." loader for way too long. I inspected the downloader portion of theApp
file and then followed the download link to find that the.zip
being downloaded is 2.6 GB.StableStudio/packages/stablestudio-ui/src/App/index.tsx
Lines 151 to 158 in f3b7d20
Why so large? Are checkpoints being included in that
.zip
file?This pain is particularly interesting to me right now because I'm currently on quite a slow connection.
Steps to reproduce
I followed the setup instructions for the
tauri
branch. Then, whether I launch viacargo tauri dev
or withpackages/stablestudio-ui/src-tauri/target/release/StableStudio
, the loading screen (mentioned above) moves at a snail's pace and always seems to get stuck at about 30% on the progress bar.I still have not waited for it complete before losing patience and discontinuing the process. I tried multiple times, waiting ~1hr before realizing the progress bar didn't seem to be making anymore progress.
Expected behavior
Even with my current slow connection, I expect a faster download. But I'm also concerned by the size of the
.zip
being downloaded. While I was waiting for StableStudio to "Downloading ComfyUI...", I was able to download and setup a standalone ComfyUI installation, so I'm confused about why it's taking StableStudio so much time/space to do the same. Seems like something inefficient and/or unnecessary may be happening. 🤔Further notes
I see the detect/download flow for ComfyUI, so I'm currently just looking into if there's a not-too-hacky way for me to set the
comfyui_location
setting to the directory where I already have working copy of ComfyUI.StableStudio/packages/stablestudio-ui/src/App/index.tsx
Lines 121 to 123 in f3b7d20
If I trace
comfyui_location
to some nicely abstracted configs file/object, that will be great. Otherwise, I'll just edit references tocomfyui_location
with the path to my standalone copy of ComfyUI. If that works well, it might be worth providing an clear way for setting up a dev environment that uses an already installed ComfyUI, rather than downloading whatever is inComfyUI_windows_portable.zip
.Also, I did notice an error in the Tauri web view inspector, when I looked at its console during one of the instances when the "Downloading ComfyUI..." progress bar seemed to get stuck. Sorry, I didn't copy it down. So, in any case, I'll look into that after I try my experiment above.
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: