I am currently trying to implement Style Transfer demo from https://github.com/zhanghang1989/PyTorch-Multi-Style-Transfer, but whenever I run “python camera_demo.py demo --model models/21styles.model” I receive the error message:
File “camera_demo.py”, line 9, in
import utils
File “/home/digarage/Schreibtisch/PyTorch-Style-Transfer/experiments/utils.py”, line 144
src_flat_cov_eye = src_norm @ src_norm.t() + Variable(torch.eye(3).cuda())
^
SyntaxError: invalid syntax
Any idea what I could do to fix this?
I tried this in PyTorch 0.1, 02 and 0.4 to no success.