@jpeg729 This is the full script: https://gist.github.com/ProGamerGov/f735c1360207b420c4f920d69853e157 5
And this is the full error message:
ubuntu@ip-Address:~/test-project$ python test2.py -content_image examples/inputs/tubingen_512.jpg -style_image examples/inputs/seated-nude_512.jpg
/usr/local/lib/python2.7/dist-packages/torchvision/transforms/transforms.py:156: UserWarning: The use of the transforms.Scale transform is deprecated, please use transforms.Resize instead.
  "please use transforms.Resize instead.")
Model Loaded
Capturing content targets
Capturing style target
Running optimization with L-BFGS
Traceback (most recent call last):
  File "test2.py", line 309, in <module>
    x, losses = optim.lbfgs(feval, img, optim_state)
  File "/usr/local/lib/python2.7/dist-packages/torch/legacy/optim/lbfgs.py", line 66, in lbfgs
    f, g = opfunc(x)
  File "test2.py", line 264, in feval
    grad = model.updateGradInput(x, dy)
  File "/usr/local/lib/python2.7/dist-packages/torch/legacy/nn/Sequential.py", line 47, in updateGradInput
    self.gradInput = self.modules[0].updateGradInput(input, currentGradOutput)
IndexError: list index out of range
ubuntu@ip-Address:~/test-project$