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

Runtime error in torchfold.py file #3

Closed
supriya-gdptl opened this issue Feb 19, 2020 · 2 comments
Closed

Runtime error in torchfold.py file #3

supriya-gdptl opened this issue Feb 19, 2020 · 2 comments

Comments

@supriya-gdptl
Copy link

supriya-gdptl commented Feb 19, 2020

Hello @yzhou359,

Thank you for sharing the code and data.

I am trying to train the SceneGraphNet model by running the command you have given on the GitHub page. I am using the 'torchfold.py' file that you have shared. Still, I got the following error after training for a few hours:

TRAIN JOB_NAME 6 : (3033/5000:11.0) CAT Loss: 2.8641, Acc_1: 1.0000, Acc_3: 1.0000, Acc_5: 1.0000,Dim Loss: 96.30447665, dim acc: 1.00

Traceback (most recent call last):
File "main.py", line 61, in <module>

File "/3DIndoor-SceneGraphNet/SceneGraphNet/train.py", line 481, in train
self._training_pass(self.valid_rooms_train, epoch, is_training=True)

File "/3DIndoor-SceneGraphNet/SceneGraphNet/train.py", line 306, in _training_pass
rand_path_fold, rand_path_node_name_order = self.model.encode_tree_fold(enc_fold, sub_node_list, rand_path, opt_parser)

File "/3DIndoor-SceneGraphNet/SceneGraphNet/model.py", line 415, in encode_tree_fold
encode_node(node_list, leaf_node=tree_leaf_node, step=i)

File "/3DIndoor-SceneGraphNet/SceneGraphNet/model.py", line 334, in encode_node
to_torch(dis_feat))

File "/torchfold/torchfold.py", line 96, in add
if args not in self.cached_nodes[op]:

RuntimeError: bool value of Tensor with more than one value is ambiguous

Could you please help me resolve this error?

Thank you,
Supriya

@supriya-gdptl
Copy link
Author

supriya-gdptl commented Feb 20, 2020

It looks like this is a problem with 'torchfold' alone and has nothing to do with SceneGraphNet code. The issue was already raised in nearai/torchfold#8.

@yzhou359 Would it be possible to provide a version of SceneGraphNet code that does not use TorchFold? It will be really helpful.

Thanks

@yzhou359
Copy link
Owner

Thanks for pointing this out and inquire the torchfold author! You can try the way they suggest. What we did is to retrain the model to avoid this problem.
I'm sorry currently we have no plan to improve this repo with other GCN packages.

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

2 participants