0 准备工作
运行环境:
Alienware GTX1070
Ubuntu 18.04
cuda 10.1
创建虚拟环境:
conda create -n py37_dface python=3.7
conda activate py37_dface
pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
pip install opencv-python
pip install matplotlib
1 错误
(py37_dface) ➜ DFace git:(zxdev) python test_image.py
/home/zhangxin/github/DFace/dface/core/models.py:8: UserWarning: nn.init.xavier_uniform is now deprecated in favor of nn.init.xavier_uniform_.
nn.init.xavier_uniform(m.weight.data)
/home/zhangxin/github/DFace/dface/core/models.py:9: UserWarning: nn.init.constant is now deprecated in favor of nn.init.constant_.
nn.init.constant(m.bias, 0.1)
Traceback (most recent call last):
File "test