Closed yamosin closed 1 year ago
\\ is ok in windows. The error show that you select nothing in the dropdown. Did you try QC scan before select in the dropdown?
I think I know why. Could you try update webui and extension.
\ is ok in windows. The error show that you select nothing in the dropdown. Did you try QC scan before select in the dropdown?
Yeah I click QC scan at first, select the dropdown to 3DCG then click the ShowPics
I think I know why. Could you try update webui and extension.
I now downloaded a completely clean sd version(git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git), then reinstalled PromptGallery, and got the same results
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64qbz5n2kfra8p0\lib\shutil.py", line 434, in copy2 copyfile(src, dst, follow_symlinks=follow_symlinks) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64qbz5n2kfra8p0\lib\shutil.py", line 254, in copyfile with open(src, 'rb') as fsrc: PermissionError: [Errno 13] Permission denied: 'D:\\BaiduNetdiskDownload\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\3dCG\\3d 1 girl blush White hair Red eyes'
Could you take a screen shot of the main interface? Add me on qq 413677671 if you like.
Could you take a screen shot of the main interface? Add me on qq 413677671 if you like.
I wonder if this is similar to why it also doesn't work for me, where clicking Show pics
after selecting a prompt just shows Error
, with the console outputting the following:
Traceback (most recent call last):
File "/home/xyem/sd/venv/lib/python3.10/site-packages/gradio/routes.py", line 284, in run_predict
output = await app.blocks.process_api(
File "/home/xyem/sd/venv/lib/python3.10/site-packages/gradio/blocks.py", line 983, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "/home/xyem/sd/venv/lib/python3.10/site-packages/gradio/blocks.py", line 930, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "/home/xyem/sd/venv/lib/python3.10/site-packages/gradio/components.py", line 3313, in postprocess
file = processing_utils.create_tmp_copy_of_file(
File "/home/xyem/sd/venv/lib/python3.10/site-packages/gradio/processing_utils.py", line 341, in create_tmp_copy_of_file
shutil.copy2(file_path, file_obj.name)
File "/usr/lib/python3.10/shutil.py", line 434, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
with open(src, 'rb') as fsrc:
IsADirectoryError: [Errno 21] Is a directory: '/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/3dCG/3d 1 girl blush White hair Red eyes'
Could not repro. Added more logging to the extension. @Xyem @yamosin Could you try reinstall and paste the full log here?
Did you add param to the yaml file? or webui COMMANDLINE_ARGS?
Did you add param to the yaml file? or webui COMMANDLINE_ARGS?
I used the default yaml file inside the extension for testing the function, without any change to it
webui-user.bat here:
@echo off
set PYTHON=
set GIT=
set COMMANDLINE_ARGS=--deepdanbooru --skip-torch-cuda-test --api --cors-allow-origins http://localhost:5173
set ACCELERATE=
call webui.bat
start log here:
venv "D:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: 44c46f0ed395967cd3830dd481a2db759fda5b3b
Installing requirements for Web UI
Installing requirements for Prompt Gallery
Launching Web UI with arguments: --deepdanbooru --api --cors-allow-origins http://localhost:5173
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading weights [4ba32025] from D:\stable-diffusion-webui\models\Stable-diffusion\momoko0.2_instagram0.8.ckpt
Applying cross attention optimization (Doggettx).
Model loaded.
Loaded a total of 4 textual inversion embeddings.
Embeddings: Char_Chunmomo, hutao, lumine, routi
INFO: Started server process [34556]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://localhost:5173 (Press CTRL+C to quit)
INFO: ::1:58481 - "GET / HTTP/1.1" 200 OK
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
the error log, QC scan and select 3DCG in the drop down menu Click on show pics, get "Traceback (most recent call last):" and the error log in the next part:
To create a public link, set `share=True` in `launch()`.
Will process 6 lines in 12 jobs.
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:10<00:00, 2.99it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:07<00:00, 3.94it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:07<00:00, 3.94it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:07<00:00, 3.92it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.30it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.30it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.30it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.31it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.31it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.32it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.31it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.31it/s]
Total progress: 100%|████████████████████████████████████████████████████████████████| 360/360 [01:41<00:00, 3.55it/s]
Traceback (most recent call last):
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 284, in run_predict
output = await app.blocks.process_api(
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 983, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 930, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 3313, in postprocess
file = processing_utils.create_tmp_copy_of_file(
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 341, in create_tmp_copy_of_file
shutil.copy2(file_path, file_obj.name)
File "D:\BaiduNetdiskDownload\stable-diffusion-webui\python\lib\shutil.py", line 434, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "D:\BaiduNetdiskDownload\stable-diffusion-webui\python\lib\shutil.py", line 254, in copyfile
with open(src, 'rb') as fsrc:
PermissionError: [Errno 13] Permission denied: 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\3dCG\\3d 1 girl blush White hair Red eyes'
and here is the path which get PermissionError:
RC seems to be the first column of path setting. I added a WAR. Could you reinstall and try again?
RC seems to be the first column of path setting. I added a WAR. Could you reinstall and try again?
Now it works! Thanks for the fix! Here is the log, in case you need it to find something else:
Also, when I manually delete this extension installed by the extension feature from webui, I get the message "The file path is too long, so it can't be put into the recycle bin"(I have used .reg file with long path file support), I'm not sure if this has anything to do with it.
To add: I just deleted the old extension in extension folder and reinstalled it (tried two installation methods: webui's extension page Available and Install from URL , both work), the settings in the picture are the same, so I didn't change it
To create a public link, set `share=True` in `launch()`.
Will process 6 lines in 12 jobs.
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:09<00:00, 3.21it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:07<00:00, 3.91it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:07<00:00, 3.93it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:07<00:00, 3.93it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.37it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.38it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.37it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.37it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.39it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.40it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.39it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.39it/s]
Total progress: 100%|████████████████████████████████████████████████████████████████| 360/360 [01:41<00:00, 3.56it/s]
Insert file:
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\3dCG\00000-3047495590-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\3dCG\00001-3047495591-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\3dCG\00002-3047495592-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\3dCG\00003-3047495593-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png
Insert file:
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\cartoon\00000-617419296-(((cartoon))), 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beauti.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\cartoon\00001-617419297-(((cartoon))), 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beauti.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\cartoon\00002-617419298-(((cartoon))), 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beauti.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\cartoon\00003-617419299-(((cartoon))), 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beauti.png
Insert file:
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_celluloid_online_clean\00000-1058629707-best quality, masterpiece, highres, original, extremely detailed wallpaper, intricate detailed, 1 girl, blush, White hair, Red.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_celluloid_online_clean\00001-1058629707-best quality, masterpiece, highres, original, extremely detailed wallpaper, intricate detailed, 1 girl, blush, White hair, Red.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_celluloid_online_clean\00002-1058629707-best quality, masterpiece, highres, original, extremely detailed wallpaper, intricate detailed, 1 girl, blush, White hair, Red.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_celluloid_online_clean\00003-1058629707-best quality, masterpiece, highres, original, extremely detailed wallpaper, intricate detailed, 1 girl, blush, White hair, Red.png
Insert file:
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_fire_high_res\00000-2070441396-flowing fire, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_fire_high_res\00001-2070441397-flowing fire, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_fire_high_res\00002-2070441398-flowing fire, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_fire_high_res\00003-2070441399-flowing fire, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png
Insert file:
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_ice_high_res\00000-663837654-flowing ice, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_ice_high_res\00001-663837655-flowing ice, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_ice_high_res\00002-663837656-flowing ice, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\General_ice_high_res\00003-663837657-flowing ice, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png
Insert file:
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\ink doodle\00000-2491066818-ink doodle, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\ink doodle\00001-2491066819-ink doodle, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\ink doodle\00002-2491066820-ink doodle, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful.png
D:\stable-diffusion-webui\extensions\PromptGallery-stable-diffusion-webui\assets\preview\ink doodle\00003-2491066821-ink doodle, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful.png
Detected folders:
{'3dCG': ['D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\3dCG\\00000-3047495590-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\3dCG\\00001-3047495591-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\3dCG\\00002-3047495592-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\3dCG\\00003-3047495593-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png'], 'cartoon': ['D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\cartoon\\00000-617419296-(((cartoon))), 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beauti.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\cartoon\\00001-617419297-(((cartoon))), 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beauti.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\cartoon\\00002-617419298-(((cartoon))), 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beauti.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\cartoon\\00003-617419299-(((cartoon))), 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beauti.png'], 'General_celluloid_online_clean': ['D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_celluloid_online_clean\\00000-1058629707-best quality, masterpiece, highres, original, extremely detailed wallpaper, intricate detailed, 1 girl, blush, White hair, Red.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_celluloid_online_clean\\00001-1058629707-best quality, masterpiece, highres, original, extremely detailed wallpaper, intricate detailed, 1 girl, blush, White hair, Red.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_celluloid_online_clean\\00002-1058629707-best quality, masterpiece, highres, original, extremely detailed wallpaper, intricate detailed, 1 girl, blush, White hair, Red.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_celluloid_online_clean\\00003-1058629707-best quality, masterpiece, highres, original, extremely detailed wallpaper, intricate detailed, 1 girl, blush, White hair, Red.png'], 'General_fire_high_res': ['D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_fire_high_res\\00000-2070441396-flowing fire, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_fire_high_res\\00001-2070441397-flowing fire, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_fire_high_res\\00002-2070441398-flowing fire, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_fire_high_res\\00003-2070441399-flowing fire, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png'], 'General_ice_high_res': ['D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_ice_high_res\\00000-663837654-flowing ice, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_ice_high_res\\00001-663837655-flowing ice, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_ice_high_res\\00002-663837656-flowing ice, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\General_ice_high_res\\00003-663837657-flowing ice, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), in.png'], 'ink doodle': ['D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\ink doodle\\00000-2491066818-ink doodle, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\ink doodle\\00001-2491066819-ink doodle, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\ink doodle\\00002-2491066820-ink doodle, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\ink doodle\\00003-2491066821-ink doodle, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful.png']}
Selected folder:
3dCG
Detected files:
['D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\3dCG\\00000-3047495590-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\3dCG\\00001-3047495591-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\3dCG\\00002-3047495592-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png', 'D:\\stable-diffusion-webui\\extensions\\PromptGallery-stable-diffusion-webui\\assets\\preview\\3dCG\\00003-3047495593-3d, 1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beauti.png']
Also, I noticed that this overwrites the original styles.csv, so maybe you could add prompts instead of overwriting styles.csv?
Could not repro. Added more logging to the extension. @Xyem @yamosin Could you try reinstall and paste the full log here?
Seems like mine is a different issue. Console output is below:
[xyem@vm-sd sd]$ ./webui.sh
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################
################################################################
Running on xyem user
################################################################
################################################################
Repo already cloned, using it as install directory
################################################################
################################################################
Create and activate python venv
################################################################
################################################################
Launching launch.py...
################################################################
Python 3.10.7 (main, Sep 6 2022, 21:22:27) [GCC 12.2.0]
Commit hash: ad239b13cf47c40970425b26bf75845ffcd9e905
Installing requirements for Web UI
[auto-sd-paint-ext] Attempting auto-update...
[auto-sd-paint-ext] Fetch upstream.
[auto-sd-paint-ext] Pull upstream.
loading Smart Crop reqs from /home/xyem/sd/extensions/sd_smartprocess/requirements.txt
Checking Smart Crop requirements.
Installing requirements for Prompt Gallery
Launching Web UI with arguments: --listen --enable-console-prompts --api --cors-allow-origins http://vm-sd:5173 --server-name vm-sd
No module 'xformers'. Proceeding without it.
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading weights [5ce8b6ec] from /home/xyem/sd/models/Stable-diffusion/sd/v1.4.ckpt
Applying cross attention optimization (Doggettx).
Model loaded.
Loaded a total of 0 textual inversion embeddings.
Embeddings:
.
INFO: Started server process [193488]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:5173 (Press CTRL+C to quit)
INFO: 127.0.0.1:53778 - "GET / HTTP/1.1" 200 OK
Running on local URL: http://vm-sd:7860
To create a public link, set `share=True` in `launch()`.
txt2img:
Error parsing line [line] as commandline:
Traceback (most recent call last):
File "/home/xyem/sd/scripts/prompt_gallery.py", line 661, in run
args = cmdargs(line)
File "/home/xyem/sd/scripts/prompt_gallery.py", line 249, in cmdargs
assert arg.startswith("--"), f'must start with "--": {arg}'
AssertionError: must start with "--": doodle/"
Will process 6 lines in 11 jobs.
100%|███████████████████████████████████████████████████████████████████████████| 30/30 [00:27<00:00, 1.07it/s]
100%|███████████████████████████████████████████████████████████████████████████| 30/30 [00:16<00:00, 1.77it/s]
100%|███████████████████████████████████████████████████████████████████████████| 30/30 [00:16<00:00, 1.77it/s]
100%|███████████████████████████████████████████████████████████████████████████| 30/30 [00:16<00:00, 1.77it/s]
100%|███████████████████████████████████████████████████████████████████████████| 30/30 [00:19<00:00, 1.55it/s]
100%|███████████████████████████████████████████████████████████████████████████| 30/30 [00:16<00:00, 1.87it/s]
100%|███████████████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00, 3.51it/s]
100%|███████████████████████████████████████████████████████████████████████████| 30/30 [00:16<00:00, 1.87it/s]
100%|███████████████████████████████████████████████████████████████████████████| 30/30 [00:16<00:00, 1.87it/s]
100%|███████████████████████████████████████████████████████████████████████████| 30/30 [00:16<00:00, 1.87it/s]
100%|███████████████████████████████████████████████████████████████████████████| 30/30 [00:16<00:00, 1.87it/s]
Total progress: 97%|███████████████████████████████████████████████████████▎ | 320/330 [03:30<00:06, 1.52it/s]
Insert file:
/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/3dCG/" --outpath_grids
/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/3dCG/3d 1 girl blush White hair Red eyes
Insert file:
/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_ice_high_res/" --outpath_grids
/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_ice_high_res/flowing ice portrait focus on face complex extremely
Insert file:
/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_fire_high_res/flowing fire portrait focus on face complex extremely
/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_fire_high_res/" --outpath_grids
Insert file:
/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_celluloid_online_clean/" --outpath_grids
/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_celluloid_online_clean/best quality masterpiece highres original extremely detailed wallpaper
Insert file:
/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/cartoon/cartoon 1 girl blush White hair Red eyes
/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/cartoon/" --outpath_grids
Insert file:
/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/ink doodle/ink doodle 1 girl blush White hair Red
Detected folders:
{'3dCG': ['/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/3dCG/" --outpath_grids ', '/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/3dCG/3d 1 girl blush White hair Red eyes'], 'General_ice_high_res': ['/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_ice_high_res/" --outpath_grids ', '/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_ice_high_res/flowing ice portrait focus on face complex extremely'], 'General_fire_high_res': ['/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_fire_high_res/flowing fire portrait focus on face complex extremely', '/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_fire_high_res/" --outpath_grids '], 'General_celluloid_online_clean': ['/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_celluloid_online_clean/" --outpath_grids ', '/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/General_celluloid_online_clean/best quality masterpiece highres original extremely detailed wallpaper'], 'cartoon': ['/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/cartoon/cartoon 1 girl blush White hair Red eyes', '/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/cartoon/" --outpath_grids '], 'ink doodle': ['/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/ink doodle/ink doodle 1 girl blush White hair Red']}
Selected folder:
3dCG
Detected files:
['/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/3dCG/" --outpath_grids ', '/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/3dCG/3d 1 girl blush White hair Red eyes']
Traceback (most recent call last):
File "/home/xyem/sd/venv/lib/python3.10/site-packages/gradio/routes.py", line 284, in run_predict
output = await app.blocks.process_api(
File "/home/xyem/sd/venv/lib/python3.10/site-packages/gradio/blocks.py", line 983, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "/home/xyem/sd/venv/lib/python3.10/site-packages/gradio/blocks.py", line 930, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "/home/xyem/sd/venv/lib/python3.10/site-packages/gradio/components.py", line 3313, in postprocess
file = processing_utils.create_tmp_copy_of_file(
File "/home/xyem/sd/venv/lib/python3.10/site-packages/gradio/processing_utils.py", line 341, in create_tmp_copy_of_file
shutil.copy2(file_path, file_obj.name)
File "/usr/lib/python3.10/shutil.py", line 434, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
with open(src, 'rb') as fsrc:
IsADirectoryError: [Errno 21] Is a directory: '/home/xyem/sd/extensions/PromptGallery-stable-diffusion-webui/assets/preview/3dCG/" --outpath_grids '
@yamosin Yes, not sure is the long filepath caused by this windows cmd issue. Windows command line has issue sometimes.
Add a fix to append csv only. Also, the csv file will only be modified if you click "export to csv".
@Xyem There seems to be escape str problem in using shlex on linux. I added a fix to that. I tested on ubuntu. Looks good on my side now.
First of all, thank you for making this great extension! I tried to use the extension while following the video and it reproduced the previous part perfectly But after generating the images, there are no images under QC scan, and when I select the select prompts dropdown on the right and click show pics, I only get a Permission denied in console
I think it may be that somehow the path is \\ instead of \ (like the path above) because the image has been generated correctly and exists in that path with \ , but the path with \\ is not accessible