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

本地模型导入无法显示和一个解决方法 #133

Open
whyorwhy opened this issue Mar 24, 2022 · 3 comments
Open

本地模型导入无法显示和一个解决方法 #133

whyorwhy opened this issue Mar 24, 2022 · 3 comments

Comments

@whyorwhy
Copy link

结论:配置->模型列表->将文件路径中的反斜杠'',全部改为正斜杠'/'即可解决。

系统win10,v3.3.0版本。
尝试过直接将文件(夹)直接拖入,或者在配置中编辑本地文件夹位置,发现模型都不能正常显示。
看到路径开头的”file://“之后猜测问题可能出在“斜杠”上。
尝试后也排除了中文路径的影响。
捣鼓了好一会儿,分享一下。

@zenghongtu zenghongtu pinned this issue Apr 1, 2022
@sl903dj
Copy link

sl903dj commented Sep 16, 2022

感谢,问题解决了。

@227575
Copy link

227575 commented Dec 11, 2023

确实有用啊,谢谢

@Unagi-cq
Copy link

Unagi-cq commented Feb 5, 2025

src\renderer\src\pages\Model\index.tsx

if (paths.length > 0) {
    const models = paths.map((p) => {
      if (!p.startsWith('http')) {
        return `file:///${p.replace(/\\/g, '/')}`
      }
      return p
    })
...

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

4 participants