hotfix/netural_network #29
@ -5,9 +5,9 @@ from PIL import Image
|
|||||||
from NeuralNetwork import NeuralNetwork
|
from NeuralNetwork import NeuralNetwork
|
||||||
|
|
||||||
def getPrediction(img_path):
|
def getPrediction(img_path):
|
||||||
|
|
||||||
# Inicjacja sieci neuronowej
|
# Inicjacja sieci neuronowej
|
||||||
neural_net = NeuralNetwork()
|
neural_net = NeuralNetwork.NeuralNetwork()
|
||||||
PATH = './trained_nn.pth'
|
PATH = './trained_nn.pth'
|
||||||
img = Image.open(img_path)
|
img = Image.open(img_path)
|
||||||
transform_tensor = transforms.ToTensor()(img).unsqueeze_(0)
|
transform_tensor = transforms.ToTensor()(img).unsqueeze_(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user