Updated retrain script. Add retrained graph.

This commit is contained in:
nlitkowski 2019-05-05 23:56:47 +02:00
parent dadab8cc54
commit dfa0d87971
6 changed files with 9 additions and 5 deletions

View File

@ -1070,13 +1070,13 @@ if __name__ == '__main__':
parser.add_argument( parser.add_argument(
'--image_dir', '--image_dir',
type=str, type=str,
default='', default='../../Images/TrainingImages',
help='Path to folders of labeled images.' help='Path to folders of labeled images.'
) )
parser.add_argument( parser.add_argument(
'--output_graph', '--output_graph',
type=str, type=str,
default='/tmp/output_graph.pb', default='../../Model/retrained_graph.pb',
help='Where to save the trained graph.' help='Where to save the trained graph.'
) )
parser.add_argument( parser.add_argument(
@ -1097,13 +1097,13 @@ if __name__ == '__main__':
parser.add_argument( parser.add_argument(
'--output_labels', '--output_labels',
type=str, type=str,
default='/tmp/output_labels.txt', default='../../Model/retrained_labels.txt',
help='Where to save the trained graph\'s labels.' help='Where to save the trained graph\'s labels.'
) )
parser.add_argument( parser.add_argument(
'--summaries_dir', '--summaries_dir',
type=str, type=str,
default='/tmp/retrain_logs', default='/retrain_logs',
help='Where to save summary logs for TensorBoard.' help='Where to save summary logs for TensorBoard.'
) )
parser.add_argument( parser.add_argument(
@ -1235,7 +1235,7 @@ if __name__ == '__main__':
parser.add_argument( parser.add_argument(
'--saved_model_dir', '--saved_model_dir',
type=str, type=str,
default='', default='../../Model',
help='Where to save the exported graph.') help='Where to save the exported graph.')
parser.add_argument( parser.add_argument(
'--logging_verbosity', '--logging_verbosity',

BIN
Model/retrained_graph.pb Normal file

Binary file not shown.

View File

@ -0,0 +1,4 @@
glass
metal
paper
plastic

BIN
Model/saved_model.pb Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.