-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Use absolute
path for normalized filepath
#15035
Conversation
absolute
path for normalized filepath
Maybe someone wants to change this symlink before reload ui. It's more logical to leave the original paths without symlink resolving Why does this bug happen? Why does forge know about the original SD directory? |
Hmm, dat upscales doesn't have this problem Upd it doesn't have problem because it doesn't have cmd flag. Also should be added I will make a new PR |
Ooops, I misunderstood and did the same thing 🤣 |
Sorry for this misunderstanding. I left only add |
Thanks for this, I'm definitely being bitten by the multiple upscaler entries issue (and also use a symlink for Related notes: https://bugs.python.org/issue39090 |
…absolute Use `absolute` path for normalized filepath
@light-and-ray So this is afflicting me again after I rearranged some upscaler directories to be more compatible with a ComfyUI install using the same shared model directory. Here's my layout: Base model path is a symlink to a shared path which is shared by various UIs:
Within that shared directory, the A1111 specific upscaler directories are symlinked into a shared
In A1111, this results in the following behavior: vs Comfy: Previously, this "worked" even with my Edit: so it looks like
vs
Not sure why I'm seeing dupe entries again though. |
Because you're symlinking an entire folder of upscalers and not separating them by type, they're going to appear several times since they'll be picked up for each architecture. That's why your list now contains 3 entries for each file. ComfyUI only provides a single |
I understand the likely mechanism of what's happening but this still seems like something trivial to fix on the code side by use of a simple hash table to prevent dupes. For now I guess I'll just symlink into upscaler specific directories and hope ComfyUI handles recursively finding them. |
…zed-filepath-absolute Use `absolute` path for normalized filepath
Description
Small oversight I made as part of #14934.
resolve
was changing paths to use the symlink, causing there to be multiple representations of a path (it should use a single representation, that representation being the path as it appears to the user).Fixes these issues (upscalers being listed twice due to multiple path representations, and symlinks/junctions breaking due to using the linked path and thus falling "outside" the Gradio directory):
lllyasviel/stable-diffusion-webui-forge#313
lllyasviel/stable-diffusion-webui-forge#282
#14942 (comment)
Checklist: