tomas-gajarsky / facetorch

Python library for analysing faces using PyTorch
Apache License 2.0
487 stars 43 forks source link

Warning regarding align.py #74

Open poke1024 opened 3 months ago

poke1024 commented 3 months ago

With python 3.10, the following warning pops up:

/home/xxx/anaconda3/envs/jupyter/lib/python3.10/site-packages/facetorch/analyzer/utilizer/align.py:223: UserWarning: Using torch.cross without specifying the dim arg is deprecated.
Please either pass the dim explicitly or simply use torch.linalg.cross.
The default value of dim will change to agree with that of linalg.cross in a future release. (Triggered internally at /opt/conda/conda-bld/pytorch_1712608935911/work/aten/src/ATen/native/Cross.cpp:62.)
  r3 = torch.cross(r1, r2)
tomas-gajarsky commented 2 months ago

Which PyTorch version have you used?