Lutz Roeder 1 год назад
Родитель
Сommit
cf33f7742f
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      source/ncnn.js

+ 2 - 0
source/ncnn.js

@@ -46,6 +46,8 @@ ncnn.ModelFactory = class {
                 context.type = 'pnnx.weights';
                 context.target = entries;
             }
+        } else if (identifier.endsWith('.ncnn.bin')) {
+            context.type = 'ncnn.weights';
         } else if (identifier.endsWith('.bin') || identifier.endsWith('.weights.ncnn')) {
             const stream = context.stream;
             if (stream.length > 4) {