Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings when running dot #60

Closed
Ghassen-Chaabouni opened this issue Feb 3, 2023 · 3 comments
Closed

Warnings when running dot #60

Ghassen-Chaabouni opened this issue Feb 3, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Ghassen-Chaabouni
Copy link
Contributor

馃悰 Bug Report

Description:

Getting warnings when running dot. This issue was mentioned in #59.

PS E:\DeepFace\dot-1.1.0\dot-1.1.0> dot -c ./configs/simswap.yaml --target 0 --source "./data" --use_gpu
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.parallel.data_parallel.DataParallel' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'models.ArcMarginModel' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'models.ResNet' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.activation.PReLU' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.MaxPool2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.container.Sequential' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'models.SEBlock' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.AdaptiveAvgPool2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.linear.Linear' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.activation.Sigmoid' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.dropout.Dropout' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
C:\Python\lib\site-packages\torch\serialization.py:671: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm1d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  warnings.warn(msg, SourceChangeWarning)
'strict' is an invalid keyword argument for load()
=== Control keys ===
1-9: Change avatar
1: .\data\ronaldo.png
2: .\data\schwarzenegger.png
3: .\data\Brad Pitt.jpg
4: .\data\David Beckham.jpg
5: .\data\einstein.jpg
6: .\data\eminem.jpg
7: .\data\jobs.jpg
8: .\data\Joe Biden.jpg
9: .\data\Leonardo Dicaprio.jpg
10: .\data\Markiplier.jpg
11: .\data\mona.jpg
12: .\data\obama.jpg
13: .\data\Pewdiepie.jpg
14: .\data\potter.jpg
15: .\data\Tom Cruise.jpg
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
C:\Python\lib\site-packages\torch\nn\functional.py:3609: 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.
  warnings.warn(
@Ghassen-Chaabouni Ghassen-Chaabouni added the bug Something isn't working label Feb 3, 2023
@Ghassen-Chaabouni Ghassen-Chaabouni self-assigned this Feb 3, 2023
@OnlyStopOnTop
Copy link

whats the solution for sourcecodechanges? I also got it for dot -c ./configs/simswap.yaml --target 0 --source "./data" --use_gpu &
dot -c ./configs/simswaphq.yaml --target 0 --source "./data" --use_gpu.

Other 2 commands or working properly. I read it麓s because pytorch made some changes between their versions if some one tries to loading it with a newer version than it was serialized.

@Ghassen-Chaabouni
Copy link
Contributor Author

whats the solution for sourcecodechanges? I also got it for dot -c ./configs/simswap.yaml --target 0 --source "./data" --use_gpu & dot -c ./configs/simswaphq.yaml --target 0 --source "./data" --use_gpu.

Other 2 commands or working properly. I read it麓s because pytorch made some changes between their versions if some one tries to loading it with a newer version than it was serialized.

Are you able to run dot? If so, you can ignore these warnings for now. Unless you already have a solution for it. You can create a PR.

@Ghassen-Chaabouni
Copy link
Contributor Author

No more warnings appear when running dot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants