def __init__(self, data_dir, model_architecture, model_filename, weights_filename, categories_filename, history_filename, train_test_split_percentage, num_training_epochs, verbose):
self.sample_size = 224 # this needs to match the input size of the pre-trained network, or you need to remove the input layer from the current network and replace it with the input size you would like
self.optimizer = RMSprop(lr=0.001, rho=0.9, epsilon=1e-08)
self.train_test_split_percentage = train_test_split_percentage
self.data_dir = data_dir
self.model_architecture = model_architecture
self.model_filename = model_filename
self.weights_filename = weights_filename
self.categories_filename = categories_filename
self.history_filename = history_filename
self.num_training_epochs = num_training_epochs
self.verbose = verbose
评论列表
文章目录