repair getPrediction

This commit is contained in:
happy531 2022-05-26 20:55:34 +02:00
parent 134e45de18
commit 49db999cc9

View File

@ -7,7 +7,7 @@ from NeuralNetwork import NeuralNetwork
def getPrediction(img_path):
# Inicjacja sieci neuronowej
neural_net = NeuralNetwork()
neural_net = NeuralNetwork.NeuralNetwork()
PATH = './trained_nn.pth'
img = Image.open(img_path)
transform_tensor = transforms.ToTensor()(img).unsqueeze_(0)