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

BotRGCN in Twibot-20 preprocess_1.py preprocess_2.py and train.py issues #46

Open
BigCatDi opened this issue Jan 9, 2024 · 0 comments

Comments

@BigCatDi
Copy link

BigCatDi commented Jan 9, 2024

Thank you for sharing your code! I'm reproducing BotRGCN on dataset Twibot-20using your code. However, after running "preprocess_1.py", "the line cat_properties_tensor=torch.reshape(default_profile_image_tensor,(5301,1)) " has error "RuntimeError: shape '[5301, 1]' is invalid for input of size 229580 ".
报错
微信截图_20240109160130

After running "preprocess_2.py" the line " each_tweet_tensor=torch.tensor(feature_extract(each_tweet)) " has error “ RuntimeError: The expanded size of the tensor (710) must match the existing size (514) at non-singleton dimension 1. Target sizes: [1, 710]. Tensor sizes: [1, 514]”
微信截图_20240109154057

After running "train.py" the line “output = model(des_tensor,tweets_tensor,num_prop,category_prop,edge_index,edge_type)” has error
RuntimeError: mat1 and mat2 shapes cannot be multiplied (229580x1 and 3x8)

I have tried many modifications without success, could you please answer my doubts and thank you again!

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