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)