Browse Source

Add .maxviz extension (#1187) (#1189)

Lutz Roeder 2 years ago
parent
commit
360f511594
4 changed files with 6 additions and 5 deletions
  1. 1 0
      package.json
  2. 1 1
      source/base.js
  3. 1 1
      source/view.js
  4. 3 3
      test/models.json

+ 1 - 0
package.json

@@ -113,6 +113,7 @@
             { "ext": "kmodel",      "name": "Kendryte Model"           },
             { "ext": "lite",        "name": "TensorFlow Lite Model"    },
             { "ext": "mar",         "name": "MXNet Model"              },
+            { "ext": "maxviz",      "name": "Modular Model"            },
             { "ext": "meta",        "name": "TensorFlow Meta Graph"    },
             { "ext": "mge",         "name": "MegEngine Mge Model"      },
             { "ext": "mlmodel",     "name": "Core ML Model"            },

+ 1 - 1
source/base.js

@@ -1090,7 +1090,7 @@ base.Metadata = class {
             'dnn', 'cmf',
             'hd5', 'hdf5', 'keras',
             'tfl', 'circle', 'lite',
-            'mlnet', 'mar',  'meta', 'nn', 'ngf', 'hn', 'har',
+            'mlnet', 'mar', 'maxviz', 'meta', 'nn', 'ngf', 'hn', 'har',
             'param', 'params',
             'paddle', 'pdiparams', 'pdmodel', 'pdopt', 'pdparams', 'nb',
             'pkl', 'joblib', 'safetensors',

+ 1 - 1
source/view.js

@@ -5192,7 +5192,7 @@ view.ModelFactoryService = class {
         this.register('./hailo', [ '.hn', '.har' ]);
         this.register('./nnc', [ '.nnc' ]);
         this.register('./safetensors', [ '.safetensors' ]);
-        this.register('./modular', [ '.mod' ]);
+        this.register('./modular', [ '.maxviz' ]);
     }
 
     register(id, factories, containers) {

+ 3 - 3
test/models.json

@@ -3000,11 +3000,11 @@
   },
   {
     "type":     "modular",
-    "target":   "resnet34.mod",
-    "source":   "https://github.com/lutzroeder/netron/files/13398809/resnet34.mod.zip[resnet34.mod]",
+    "target":   "resnet34.maxviz",
+    "source":   "https://github.com/lutzroeder/netron/files/13421032/resnet34.maxviz.zip[resnet34.maxviz]",
     "action":   "skip-render",
     "format":   "Modular",
-    "link":     "https://github.com/lutzroeder/netron/pull/1186"
+    "link":     "https://github.com/lutzroeder/netron/issues/1187"
   },
   {
     "type":     "mslite",