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

[Bug]: "Copy Path To Clipboard" function - No directory separators on Windows, loses subdirectories #15309

Closed
4 of 6 tasks
Targren opened this issue Mar 18, 2024 · 1 comment
Closed
4 of 6 tasks
Labels
bug Report of a confirmed bug

Comments

@Targren
Copy link

Targren commented Mar 18, 2024

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

When attempting to copy the path of a checkpoint or Lora to clipboard using the "Copy Path To Clipboard" icon (either on the card, or on the tree view), the resulting data in the clipboard lacks any directory separators.

e.g. E:A1111 Web UIStabilityMatrixDataPackagesStable Diffusion WebUImodelsStable-diffusion

I suspect this an escaping issue, since Windows uses the backslash as a directory separator, while python uses it for character escaping.

Capture

Steps to reproduce the problem

  1. Load WebUI on Windows
  2. Go to LORA or Checkpoints tab
  3. Click on the "Copy To Clipboard" icon on any resource
  4. Paste the clipboard contents into a text editor

What should have happened?

The clipboard contents should contain a proper windows path to the location of the resournce. e.g E:\A1111 Web UI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\models\Stable-diffusion\00. Favorites\Illustration

What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome, Other

Sysinfo

sysinfo-2024-03-18-18-41.json

Console logs

Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
Launching Web UI with arguments: --xformers --api --skip-python-version-check --no-download-sd-model --no-half-vae --listen --theme dark 
Loading weights [27a4ac756c] from E:\A1111 Web UI\StabilityMatrixData\Packages\Stable Diffusion WebUI\models\Stable-diffusion\SD1.5-Vanilla.ckpt
Running on local URL:  http://0.0.0.0:7860
Creating model from config: E:\A1111 Web UI\StabilityMatrixData\Packages\Stable Diffusion WebUI\configs\v1-inference.yaml
Applying attention optimization: xformers... done.
Model loaded in 2.2s (load weights from disk: 1.1s, create model: 0.2s, apply weights to model: 0.4s, load textual inversion embeddings: 0.2s, calculate empty prompt: 0.1s).

To create a public link, set `share=True` in `launch()`.
Startup time: 12.4s (prepare environment: 1.7s, import torch: 2.8s, import gradio: 0.8s, setup paths: 0.8s, initialize shared: 0.2s, other imports: 0.5s, list SD models: 0.1s, load scripts: 0.6s, create ui: 0.6s, gradio launch: 4.3s, add APIs: 0.1s).

Additional information

No response

@Targren Targren added the bug-report Report of a bug, yet to be confirmed label Mar 18, 2024
@catboxanon catboxanon added bug Report of a confirmed bug and removed bug-report Report of a bug, yet to be confirmed labels Mar 18, 2024
@catboxanon
Copy link
Collaborator

Fixed by #15316, closing

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

No branches or pull requests

2 participants