Merge pull request #129 from mariuszrokita/patch-1

Update main.py
This commit is contained in:
Yunjey Choi
2020-01-28 00:05:19 +09:00
committed by GitHub

View File

@ -98,7 +98,7 @@ z = y.numpy()
# ================================================================== #
# 4. Input pipline #
# 4. Input pipeline #
# ================================================================== #
# Download and construct CIFAR-10 dataset.
@ -130,7 +130,7 @@ for images, labels in train_loader:
# ================================================================== #
# 5. Input pipline for custom dataset #
# 5. Input pipeline for custom dataset #
# ================================================================== #
# You should build your custom dataset as below.
@ -186,4 +186,4 @@ model = torch.load('model.ckpt')
# Save and load only the model parameters (recommended).
torch.save(resnet.state_dict(), 'params.ckpt')
resnet.load_state_dict(torch.load('params.ckpt'))
resnet.load_state_dict(torch.load('params.ckpt'))