Jho-Yonsei / HD-GCN

[ICCV 2023] Hierarchically Decomposed Graph Convolutional Networks for Skeleton-Based Action Recognition
MIT License
131 stars 23 forks source link

ImportError from graph module #11

Open harryz619 opened 1 year ago

harryz619 commented 1 year ago

/project/6006955/hzhuang2/hd_gcn_testing/hd_gcn/main.py:592: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. default_arg = yaml.load(f) Traceback (most recent call last): File "/project/6006955/hzhuang2/hd_gcn_testing/hd_gcn/main.py", line 602, in processor = Processor(arg) File "/project/6006955/hzhuang2/hd_gcn_testing/hd_gcn/main.py", line 251, in init self.load_model() File "/project/6006955/hzhuang2/hd_gcn_testing/hd_gcn/main.py", line 293, in load_model Model = import_class(self.arg.model) File "/project/6006955/hzhuang2/hd_gcn_testing/hd_gcn/main.py", line 47, in import_class import(mod_str) File "/project/6006955/hzhuang2/hd_gcn_testing/hd_gcn/model/HDGCN.py", line 11, in from graph.tools import get_groups File "/project/6006955/hzhuang2/hd_gcn_testing/hd_gcn/graph/init.py", line 3, in from . import ntu_rgb_d ImportError: cannot import name 'ntu_rgb_d' from partially initialized module 'graph' (most likely due to a circular import) (/project/6006955/hzhuang2/hd_gcn_testing/hd_gcn/graph/init.py)

I am not sure how to deal with this error when attempting to train the model on nturgb60

WeitaoVan commented 1 year ago

Hi, you can solve it by deleting code lines 3 - 4 in file graph/__init__.py.