I assume your model’s parameters are torch.FloatTensors while your input is a torch.DoubleTensor.
Both dtypes should be the same, so you would have to use img = images.float() or model = model.double().
Could you try that and let me know, if this works for you?
PS: You can post code using three backticks `
This will make sure that your code can be searched in this forum and is usually easier to read and copy.