Fix missing predict argument

This commit is contained in:
2024-04-22 22:04:46 +02:00
parent 157d4c736b
commit 88e852a6e5

View File

@@ -34,5 +34,5 @@ if __name__ == "__main__":
alexnet = torchvision.models.alexnet(weights=torchvision.models.AlexNet_Weights.DEFAULT) alexnet = torchvision.models.alexnet(weights=torchvision.models.AlexNet_Weights.DEFAULT)
print_model_parameters(alexnet) # print layer names and number of parameters print_model_parameters(alexnet) # print layer names and number of parameters
export_model_weights(alexnet, 'alexnet_weights.bin') export_model_weights(alexnet, 'alexnet_weights.bin')
# predict('cat.jpg') # predict(alexnet, 'cat.jpg')