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

error #5

Open
jeminteza08 opened this issue Sep 15, 2023 · 0 comments
Open

error #5

jeminteza08 opened this issue Sep 15, 2023 · 0 comments

Comments

@jeminteza08
Copy link

jeminteza08 commented Sep 15, 2023

Traceback (most recent call last):
File "/content/DragGAN_PTI/visualizer_drag_gradio.py", line 711, in
global_state = init_images(global_state)
File "/content/DragGAN_PTI/visualizer_drag_gradio.py", line 92, in init_images
add_watermark_np(np.array(init_image)))
File "/content/DragGAN_PTI/viz/renderer.py", line 53, in add_watermark_np
font = ImageFont.truetype('arial.ttf', round(25/512*image.size[0]))
File "/usr/local/lib/python3.10/dist-packages/PIL/ImageFont.py", line 1008, in truetype
return freetype(font)
File "/usr/local/lib/python3.10/dist-packages/PIL/ImageFont.py", line 1005, in freetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/usr/local/lib/python3.10/dist-packages/PIL/ImageFont.py", line 255, in init
self.font = core.getfont(
OSError: cannot open resource

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

No branches or pull requests

1 participant