Based on the error message image is not loaded properly and is a None as seen here:
torch.FloatTensor(None)
> TypeError: new(): data must be a sequence (got NoneType)

so I assume the upload or data loading fails.