-------------- End ---------------- /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.parallel.data_parallel.DataParallel' has changed. Saved a reverse patch to DataParallel.patch. Runpatch -p0 < DataParallel.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. Tried to save a patch, but couldn't create a writable file Conv2d.patch. Make sure it doesn't exist and your working directory is writable. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm2d' has changed. Saved a reverse patch to BatchNorm2d.patch. Runpatch -p0 < BatchNorm2d.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.activation.PReLU' has changed. Saved a reverse patch to PReLU.patch. Runpatch -p0 < PReLU.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.MaxPool2d' has changed. Saved a reverse patch to MaxPool2d.patch. Runpatch -p0 < MaxPool2d.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.container.Sequential' has changed. Saved a reverse patch to Sequential.patch. Runpatch -p0 < Sequential.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.AdaptiveAvgPool2d' has changed. Saved a reverse patch to AdaptiveAvgPool2d.patch. Runpatch -p0 < AdaptiveAvgPool2d.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.linear.Linear' has changed. Saved a reverse patch to Linear.patch. Runpatch -p0 < Linear.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.activation.Sigmoid' has changed. Saved a reverse patch to Sigmoid.patch. Runpatch -p0 < Sigmoid.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.dropout.Dropout' has changed. Saved a reverse patch to Dropout.patch. Runpatch -p0 < Dropout.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm1d' has changed. Saved a reverse patch to BatchNorm1d.patch. Runpatch -p0 < BatchNorm1d.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/nn/functional.py:3455: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details. "See the documentation of nn.Upsample for details.".format(mode)
Please help me, I don't know how to fix it, thanks a lot!
exect cmd:
python3 test_one_image.py --name people --Arc_path arcface_model/arcface_checkpoint.tar --pic_a_path crop_224/6.jpg --pic_b_path crop_224/ds.jpg --output_path output/
error info:
-------------- End ---------------- /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.parallel.data_parallel.DataParallel' has changed. Saved a reverse patch to DataParallel.patch. Run
patch -p0 < DataParallel.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. Tried to save a patch, but couldn't create a writable file Conv2d.patch. Make sure it doesn't exist and your working directory is writable. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm2d' has changed. Saved a reverse patch to BatchNorm2d.patch. Run
patch -p0 < BatchNorm2d.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.activation.PReLU' has changed. Saved a reverse patch to PReLU.patch. Run
patch -p0 < PReLU.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.MaxPool2d' has changed. Saved a reverse patch to MaxPool2d.patch. Run
patch -p0 < MaxPool2d.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.container.Sequential' has changed. Saved a reverse patch to Sequential.patch. Run
patch -p0 < Sequential.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.AdaptiveAvgPool2d' has changed. Saved a reverse patch to AdaptiveAvgPool2d.patch. Run
patch -p0 < AdaptiveAvgPool2d.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.linear.Linear' has changed. Saved a reverse patch to Linear.patch. Run
patch -p0 < Linear.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.activation.Sigmoid' has changed. Saved a reverse patch to Sigmoid.patch. Run
patch -p0 < Sigmoid.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.dropout.Dropout' has changed. Saved a reverse patch to Dropout.patch. Run
patch -p0 < Dropout.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm1d' has changed. Saved a reverse patch to BatchNorm1d.patch. Run
patch -p0 < BatchNorm1d.patchto revert your changes. warnings.warn(msg, SourceChangeWarning) /root/miniconda/envs/cc/lib/python3.6/site-packages/torch/nn/functional.py:3455: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details. "See the documentation of nn.Upsample for details.".format(mode)
Please help me, I don't know how to fix it, thanks a lot!