From 0cc0810ad784017e88efee24882ef4c95ed2db72 Mon Sep 17 00:00:00 2001 From: Jakub Henyk Date: Sun, 7 May 2023 18:23:15 +0200 Subject: [PATCH] fix8 --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 1d6ec60..ec38ef2 100644 --- a/train.py +++ b/train.py @@ -74,7 +74,7 @@ if __name__ == '__main__': criterion = nn.CrossEntropyLoss() optimizer = optim.SGD(net.parameters(), lr=0.001, momentum=0.9) - epochs = sys.argv[1] + epochs = int(sys.argv[1]) trainNet(trainloader, criterion, optimizer, epochs)