hotfix/netural_network #29

Merged
s464843 merged 3 commits from hotfix/netural_network into master 2022-05-26 21:48:29 +02:00
Showing only changes of commit 49db999cc9 - Show all commits

View File

@ -5,9 +5,9 @@ from PIL import Image
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)