You are currently initializing model and optimizer as an empty Python list, which creates this error.
Initialize both as you have done in your training script, i.e.:
model = ConvNet(...)
optimizer = optim.SGD(model.parameters(), ...)

# Now load the state_dicts
model.load_state_dict(...)
optimizer.load_state_dict(...)