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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running Chignolin tutorial. #33

Open
dondavidsb opened this issue Dec 12, 2023 · 0 comments
Open

Error while running Chignolin tutorial. #33

dondavidsb opened this issue Dec 12, 2023 · 0 comments

Comments

@dondavidsb
Copy link

dondavidsb commented Dec 12, 2023

Hi, I am trying to run the tutorial. I don't know how to solve the following error, arises when running the train.py step:

ERROR:

/home/poasibrd/anaconda3/envs/david/lib/python3.10/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: '/home/poasibrd/anaconda3/envs/david/lib/python3.10/site-packages/torchvision/image.so: undefined symbol: _ZN3c107WarningC1ENS_7variantIJNS0_11UserWarningENS0_18DeprecationWarningEEEERKNS_14SourceLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb'If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source?
warn(
Traceback (most recent call last):
File "/home/poasibrd/berlin/torchmd-net/scripts/train.py", line 12, in
from torchmdnet.module import LNNP
File "/home/poasibrd/anaconda3/envs/david/lib/python3.10/site-packages/torchmdnet/module.py", line 10, in
from torchmdnet.models.model import create_model, load_model
File "/home/poasibrd/anaconda3/envs/david/lib/python3.10/site-packages/torchmdnet/models/model.py", line 6, in
from torchmdnet.models import output_modules
File "/home/poasibrd/anaconda3/envs/david/lib/python3.10/site-packages/torchmdnet/models/output_modules.py", line 5, in
from torchmdnet.models.utils import act_class_mapping, GatedEquivariantBlock, scatter
File "/home/poasibrd/anaconda3/envs/david/lib/python3.10/site-packages/torchmdnet/models/utils.py", line 6, in
from torchmdnet.extensions import get_neighbor_pairs_kernel
File "/home/poasibrd/anaconda3/envs/david/lib/python3.10/site-packages/torchmdnet/extensions/init.py", line 115, in
dynamo.disallow_in_graph(get_neighbor_pairs_kernel)
File "/home/poasibrd/anaconda3/envs/david/lib/python3.10/site-packages/torch/_dynamo/decorators.py", line 138, in disallow_in_graph
return _disallow_in_graph_helper(throw_if_not_allowed=True)(fn)
File "/home/poasibrd/anaconda3/envs/david/lib/python3.10/site-packages/torch/_dynamo/decorators.py", line 106, in inner
raise IncorrectUsage(
torch._dynamo.exc.IncorrectUsage: disallow_in_graph is expected to be used on an already allowed callable (like torch.* ops). Allowed callables means callables that TorchDynamo puts as-is in the extracted graph.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant