Solved by albanD in post #19 
              
              
                Hi, 
You can try adding this at the beginning of your code: 

for mod in modulelist:
    if hasattr(mod, "inplace"):
        print(mod)
        mod.inplace=False

All the ReLU in vgg are inplace  And they modify your img1/img2 inplace.