[PR #3] use DejaVuSans.ttf font when drawing box #127

Open
opened 2026-10-26 21:12:28 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepSeek-VL2/pull/3
Author: @learningpro
Created: 12/15/2024
Status: 🔄 Open

Base: main ← Head: main


📝 Commits (1)

  • db08efc use DejaVuSans.ttf font when drawing box

📊 Changes

2 files changed (+1 additions, -1 deletions)

View changed files

📝 deepseek_vl/serve/app_modules/utils.py (+1 -1)
➖ deepseek_vl/serve/assets/simsun.ttc (+0 -0)

📄 Description

  1. 在nvidia pytorch docker环境下使用的时候,会出现OS Error
    WX20241214-215748@2x

2.修改了字体文件引用的路径之后依然会有该问题出现,在docker中无法直接使用ttc字体文件,改为使用系统自带的ttf字体文件即可解决该问题

  1. 同时移除ttc字体文件,减少仓库体积

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/deepseek-ai/DeepSeek-VL2/pull/3 **Author:** [@learningpro](https://github.com/learningpro) **Created:** 12/15/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`db08efc`](https://github.com/deepseek-ai/DeepSeek-VL2/commit/db08efcefa2a575345703df79a54b866c9fc4462) use DejaVuSans.ttf font when drawing box ### 📊 Changes **2 files changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `deepseek_vl/serve/app_modules/utils.py` (+1 -1) ➖ `deepseek_vl/serve/assets/simsun.ttc` (+0 -0) </details> ### 📄 Description 1. 在nvidia pytorch docker环境下使用的时候,会出现OS Error ![WX20241214-215748@2x](https://github.com/user-attachments/assets/a84805c8-4781-4ed9-9cdc-e7b896d37846) 2.修改了字体文件引用的路径之后依然会有该问题出现,在docker中无法直接使用ttc字体文件,改为使用系统自带的ttf字体文件即可解决该问题 3. 同时移除ttc字体文件,减少仓库体积 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-VL2#127
No description provided.