altryne / awesome-ai-art-image-synthesis

A list of awesome tools, ideas, prompt engineering tools, colabs, models, and helpers for the prompt designer playing with aiArt and image synthesis. Covers Dalle2, MidJourney, StableDiffusion, and open source tools.
1.73k stars 120 forks source link

BUG: Stable Diffusion WebUI - Error: No usable font found #11

Closed Gushousekai195 closed 2 years ago

Gushousekai195 commented 2 years ago

I tried to use your WebUI for SD via your Colab (https://colab.research.google.com/github/altryne/sd-webui-colab/blob/main/Stable_Diffusion_WebUi_Altryne.ipynb#scrollTo=jnXUwtACCHOy) and got a “No usable font found” error.

Iteration: 1/1 100% 50/50 [00:19<00:00, 2.51it/s] Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/gradio/routes.py", line 247, in run_predict output = await app.blocks.process_api( File "/usr/local/lib/python3.8/site-packages/gradio/blocks.py", line 641, in process_api predictions, duration = await self.call_function(fn_index, processed_input) File "/usr/local/lib/python3.8/site-packages/gradio/blocks.py", line 556, in call_function prediction = await anyio.to_thread.run_sync( File "/usr/local/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run result = context.run(func, *args) File "scripts/webui.py", line 998, in txt2img output_images, seed, info, stats = process_images( File "scripts/webui.py", line 923, in process_images grid = image_grid(output_images, batch_size) File "scripts/webui.py", line 419, in image_grid fnt = get_font(30) File "scripts/webui.py", line 401, in get_font raise Exception(f"No usable font found (tried {', '.join(fonts)})") Exception: No usable font found (tried arial.ttf, DejaVuSans.ttf)

The program is completely unusable. Please fix this. Thank you.

altryne commented 2 years ago

Please try now