File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,6 @@ def scan_subdir(model_type):
48
48
if filename .endswith ('.pt' ):
49
49
available_models .append (filename )
50
50
data_config_avai [filename ] = scan_data_config (filename [:- 3 ])
51
- elif model_type == 'tensorflow' :
52
- if filename .endswith ('.pb' ):
53
- available_models .append (filename )
54
- data_config_avai [filename ] = scan_data_config (filename [:- 3 ])
55
51
elif model_type == 'onnx' :
56
52
if filename .endswith ('.onnx' ):
57
53
available_models .append (filename )
@@ -62,7 +58,7 @@ def scan_subdir(model_type):
62
58
def scan ():
63
59
"""Scan all directories that contain example models and write to a file."""
64
60
65
- available_types = ['keras' , 'pytorch' , 'onnx' , 'tensorflow' ]
61
+ available_types = ['keras' , 'pytorch' , 'onnx' ]
66
62
67
63
#Dictionary to save available model list
68
64
model_dict = {}
@@ -80,4 +76,4 @@ def scan():
80
76
json .dump (model_dict , open ("available_models.json" , 'w' ))
81
77
json .dump (data_config_avai , open ("available_data_config.json" , 'w' ))
82
78
83
- scan ()
79
+ scan ()
You can’t perform that action at this time.
0 commit comments