BinaryQuantumSoul / sdnext-modernui

SD.Next ModernUI
GNU Affero General Public License v3.0
15 stars 7 forks source link

[Issue]: Error loading images with "+" or "&" symbol in gallery tab #56

Closed Eljoseto closed 1 month ago

Eljoseto commented 1 month ago

Issue Description

Made a clean install of SD.Next but Gallery tab can't load images that have the plus sign in the name. My default naming scheme includes the sampler name so when I use any DPM++ sampler, the "+" sing is read as "%2B"

the path that the UI reads gets like this: Media not found: I:\AiModels\Images\1-FromText/04038-Seed_7-Model_CinnamonMix-Sampler_DPM%2B%2B 2M.png

Gallery tab that I see imagen_2024-05-28_232733730

Backend

Chrome (and derivatives)

Branch

Desktop

Version Platform Description

23:19:42-919816 INFO Starting SD.Next 23:19:42-924821 INFO Logger: file="I:\SD-Next\sdnext.log" level=INFO size=2688216 mode=append 23:19:42-927824 INFO Python 3.10.11 on Windows 23:19:43-089971 INFO Version: app=sd.next updated=2024-05-28 hash=f5283c37 branch=master url=https://github.com/vladmandic/automatic.git/tree/master 23:19:43-710682 INFO Platform: arch=AMD64 cpu=AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD system=Windows release=Windows-10-10.0.19045-SP0 python=3.10.11 23:19:43-719690 INFO nVidia CUDA toolkit detected: nvidia-smi present 23:19:44-007951 INFO Extensions: disabled=[] 23:19:44-010954 INFO Extensions: enabled=['Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sdnext-modernui', 'stable-diffusion-webui-rembg'] extensions-builtin 23:19:44-016960 INFO Extensions: enabled=[] extensions 23:19:44-019963 INFO Startup: quick launch 23:19:44-021964 INFO Verifying requirements 23:19:44-026969 INFO Verifying packages 23:19:44-028971 INFO Extensions: disabled=[] 23:19:44-030973 INFO Extensions: enabled=['Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sdnext-modernui', 'stable-diffusion-webui-rembg'] extensions-builtin 23:19:44-037979 INFO Extensions: enabled=[] extensions 23:19:44-042984 INFO Command line args: ['--listen', '--autolaunch'] listen=True autolaunch=True 23:19:50-077802 INFO Load packages: {'torch': '2.3.0+cu121', 'diffusers': '0.28.0', 'gradio': '3.43.2'} 23:19:50-799974 INFO VRAM: Detected=12.0 GB Optimization=none 23:19:50-804979 INFO Engine: backend=Backend.DIFFUSERS compute=cuda device=cuda attention="Scaled-Dot-Product" mode=no_grad 23:19:50-861029 INFO Device: device=NVIDIA GeForce RTX 3060 n=1 arch=sm_90 cap=(8, 6) cuda=12.1 cudnn=8801 driver=551.86 23:19:51-604478 INFO Available VAEs: path="I:\AiModels\VAE" items=4 23:19:51-611485 INFO Disabled extensions: [] 23:19:51-646517 INFO Available models: path="I:\AiModels\Stable-diffusion" items=81 time=0.03 23:19:51-995834 INFO Extension: script='extensions-builtin\Lora\scripts\lora_script.py' 23:19:51-990829 INFO LoRA networks: available=165 folders=2 23:19:52-435233 INFO Extension: script='extensions-builtin\sd-webui-agent-scheduler\scripts\task_scheduler.py' Using sqlite file: extensions-builtin\sd-webui-agent-scheduler\task_scheduler.sqlite3 23:19:52-469264 INFO Upscaler create: folder="I:\AiModels\Restoration\LDSR" 23:19:52-493285 INFO UI theme: type=Modern name="Default" 23:19:54-184213 INFO Extension list is empty: refresh required 23:19:57-418190 INFO Local URL: http://localhost:7860/ 23:19:57-626379 INFO [AgentScheduler] Task queue is empty 23:19:57-629382 INFO [AgentScheduler] Registering APIs 23:19:57-776176 INFO Select: model="CivitAiModels\cityedgeStylemix_v144 [4acae2c59b]" 23:19:57-817213 INFO Setting Torch parameters: device=cuda dtype=torch.float16 vae=torch.float16 unet=torch.float16 context=no_grad fp16=True bf16=None optimization=Scaled-Dot-Product 23:19:57-839233 INFO Loading VAE: model=I:\AiModels\VAE\SD_1.5_VAE.safetensors source=settings 23:19:57-845238 INFO Autodetect: vae="Stable Diffusion" class=StableDiffusionPipeline file="I:\AiModels\Stable-diffusion\CivitAiModels\cityedgeStylemix_v144.safetensors" size=2034MB 23:19:58-513999 INFO Autodetect: model="Stable Diffusion" class=StableDiffusionPipeline file="I:\AiModels\Stable-diffusion\CivitAiModels\cityedgeStylemix_v144.safetensors" size=2034MB

imagen_2024-05-28_233323967

Relevant log output

2024-05-28 23:25:53.698 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/07548-Seed_867695680-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/07548-Seed_867695680-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/07548-Seed_867695680-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png.'}
2024-05-28 23:25:53.774 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/05781-Seed_118917386-Model_BreakDomain+gy003-Sampler_Euler a.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/05781-Seed_118917386-Model_BreakDomain+gy003-Sampler_Euler a.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/05781-Seed_118917386-Model_BreakDomain+gy003-Sampler_Euler a.png.'}
2024-05-28 23:25:54.079 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/05780-Seed_118917385-Model_BreakDomain+gy003-Sampler_Euler a.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/05780-Seed_118917385-Model_BreakDomain+gy003-Sampler_Euler a.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/05780-Seed_118917385-Model_BreakDomain+gy003-Sampler_Euler a.png.'}
2024-05-28 23:25:54.123 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/07547-Seed_1053592720-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/07547-Seed_1053592720-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/07547-Seed_1053592720-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png.'}
2024-05-28 23:25:54.168 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/05779-Seed_118917384-Model_BreakDomain+gy003-Sampler_Euler a.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/05779-Seed_118917384-Model_BreakDomain+gy003-Sampler_Euler a.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/05779-Seed_118917384-Model_BreakDomain+gy003-Sampler_Euler a.png.'}
2024-05-28 23:25:54.210 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/05783-Seed_118917388-Model_BreakDomain+gy003-Sampler_Euler a.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/05783-Seed_118917388-Model_BreakDomain+gy003-Sampler_Euler a.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/05783-Seed_118917388-Model_BreakDomain+gy003-Sampler_Euler a.png.'}
2024-05-28 23:25:54.253 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/05785-Seed_508804696-Model_BreakDomain+gy003-Sampler_Euler a.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/05785-Seed_508804696-Model_BreakDomain+gy003-Sampler_Euler a.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/05785-Seed_508804696-Model_BreakDomain+gy003-Sampler_Euler a.png.'}
2024-05-28 23:25:54.299 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/05784-Seed_508804695-Model_BreakDomain+gy003-Sampler_Euler a.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/05784-Seed_508804695-Model_BreakDomain+gy003-Sampler_Euler a.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/05784-Seed_508804695-Model_BreakDomain+gy003-Sampler_Euler a.png.'}
2024-05-28 23:25:54.344 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/05787-Seed_508804698-Model_BreakDomain+gy003-Sampler_Euler a.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/05787-Seed_508804698-Model_BreakDomain+gy003-Sampler_Euler a.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/05787-Seed_508804698-Model_BreakDomain+gy003-Sampler_Euler a.png.'}
2024-05-28 23:25:54.385 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/07550-Seed_4172871226-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/07550-Seed_4172871226-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/07550-Seed_4172871226-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png.'}
2024-05-28 23:25:54.423 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/05795-Seed_3262725699-Model_BreakDomain+gy003-Sampler_Euler a.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/05795-Seed_3262725699-Model_BreakDomain+gy003-Sampler_Euler a.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/05795-Seed_3262725699-Model_BreakDomain+gy003-Sampler_Euler a.png.'}
2024-05-28 23:25:54.463 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/07551-Seed_1071670742-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png {'error': 'HTTPException', 'code': 403, 'detail': 'File not allowed: I:/AiModels/Images/1-FromText/07551-Seed_1071670742-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png.', 'body': '', 'errors': '403: File not allowed: I:/AiModels/Images/1-FromText/07551-Seed_1071670742-Model_cityedgeStylemix_v144-Sampler_DPM++ 2M.png.'}
2024-05-28 23:25:54.503 ERROR   sd  middleware  API error: GET: http://localhost:7860/file=I:/AiModels/Images/1-FromText/05791-Seed_508804702-Model_BreakDomain+gy003-Sam

Acknowledgements

BinaryQuantumSoul commented 1 month ago

Does this happen in legacy ui too or only modern ui ?

vladmandic commented 1 month ago

fixed.