Digital Bottle
Digital Bottle
Thx for the immediate reply, however I'm not so sure what caused this issue; I'd love to find it by testing repeatedly but once I crash out, I cannot go...
Yep, I cannot restart it, it will crash again afterwards, repeatedly (not by accident) every time when I tap to restart. I reinstalled twice and met the same issue, and...
Yes, it is.
Just comment line 29~35 and don't use `try_to_load_from_cache`, write the `FONT_PATH` all by yourself: 干脆注释掉29~35行,也别用`try_to_load_from_cache`,纯手动把`FONT_PATH`写了: ```python FONT_PATH = "xxx/Qwen-VL-Chat/SimSun.ttf" # if FONT_PATH is None: # if not os.path.exists("SimSun.ttf"): # ttf...
> > Just comment line 29~35 and don't use `try_to_load_from_cache`, write the `FONT_PATH` all by yourself: 干脆注释掉29~35行,也别用`try_to_load_from_cache`,纯手动把`FONT_PATH`写了: > > ```python > > FONT_PATH = "xxx/Qwen-VL-Chat/SimSun.ttf" > > # if FONT_PATH...
嗯嗯,总之没法连外网的server就避开requests就是了,这个字体应该是用来给圈定的图片内容写标记文本的,模型目录已经有字体文件了还去外网请求没啥必要。
咦,那就还是加载失败了,因为QWenTokenizer这个类就是在你修改过的`tokenization_qwen.py`中定义的;按说qwen不会不支持加载本地分词器啊,本地的模型文件目录下面东西是齐的不,`qwen.tiktoken`、`tokenization_qwen.py`、`tokenizer_config.json`啥的都在?这可有点玄学了Orz