Browse Source

add convert

pull/3087/head
Gitea 2 years ago
parent
commit
674f4701c9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      templates/repo/modelmanage/convertIndex.tmpl

+ 1
- 1
templates/repo/modelmanage/convertIndex.tmpl View File

@@ -532,7 +532,7 @@
}
}
function isModel(filename){
var postfix=[".pth",".pkl",".onnx",".mindir",".ckpt",".pb",".pdmodel","pdparams",".params",".json"];
var postfix=[".pth",".pkl",".onnx",".mindir",".ckpt",".pb",".pdmodel","pdiparams",".params",".json"];
for(var i =0; i<postfix.length;i++){
if(filename.substring(filename.length-postfix[i].length)==postfix[i]){
return true;


Loading…
Cancel
Save