|
|
@@ -1408,7 +1408,7 @@ view.ModelFactoryService = class {
|
|
|
this.register('./sklearn', [ '.pkl', '.pickle', '.joblib', '.model', '.meta', '.pb', '.pt', '.h5', '.pkl.z', '.joblib.z' ]);
|
|
|
this.register('./pickle', [ '.pkl', '.pickle', '.joblib', '.model', '.meta', '.pb', '.pt', '.h5', '.pkl.z', '.joblib.z' ]);
|
|
|
this.register('./cntk', [ '.model', '.cntk', '.cmf', '.dnn' ]);
|
|
|
- this.register('./paddle', [ '.pdmodel', '.pdparams', '.pdiparams', '.paddle', '__model__', '.pbtxt', '.txt', '.tar', '.tar.gz', 'model', 'params' ]);
|
|
|
+ this.register('./paddle', [ '.pdmodel', '.pdparams', '.pdiparams', '.paddle', '__model__', '.pbtxt', '.txt', '.tar', '.tar.gz' ]);
|
|
|
this.register('./bigdl', [ '.model', '.bigdl' ]);
|
|
|
this.register('./darknet', [ '.cfg', '.model', '.txt', '.weights' ]);
|
|
|
this.register('./weka', [ '.model' ]);
|
|
|
@@ -1744,11 +1744,6 @@ view.ModelFactoryService = class {
|
|
|
matches.some((e) => e.name.toLowerCase().endsWith('.pdiparams'))) {
|
|
|
matches = matches.filter((e) => e.name.toLowerCase().endsWith('.pdmodel'));
|
|
|
}
|
|
|
- if (matches.length > 0 &&
|
|
|
- matches.some((e) => e.name.split('/').pop().toLowerCase() === 'model') &&
|
|
|
- matches.some((e) => e.name.split('/').pop().toLowerCase() === 'params')) {
|
|
|
- matches = matches.filter((e) => e.name.toLowerCase().split('/').pop().toLowerCase() === 'model');
|
|
|
- }
|
|
|
// TensorFlow Bundle
|
|
|
if (matches.length > 1 &&
|
|
|
matches.some((e) => e.name.toLowerCase().endsWith('.data-00000-of-00001'))) {
|