georgeguo-cn / LGMRec

[AAAI 2024] Official Pytorch Implementation for "LGMRec: Local and Global Graph Learning for Multimodal Recommendation".
25 stars 8 forks source link

Code problem #1

Open Panamera2333 opened 6 months ago

Panamera2333 commented 6 months ago

After running your code, the results I get are slightly different from those in your paper, could you share the training log

georgeguo-cn commented 3 months ago

I have shared the training log in the dir /log before. Please take a look.

xnjqhofhjgd commented 3 months ago

After running your code, the error cannot reshape array of size 21626864 into shape (7050,4096)

georgeguo-cn commented 2 months ago

I reran the code and did not encounter the error message you mentioned. Can you provide the positioning of the error in the code?

xnjqhofhjgd commented 2 months ago

哥哥,咱俩加个微信吧,这个代码我怎么运行都有问题,可能有有些问题想问您,但是我不经常看我的邮箱

---Original--- From: "Zhiqiang @.> Date: Mon, Aug 19, 2024 19:19 PM To: @.>; Cc: @.**@.>; Subject: Re: [georgeguo-cn/LGMRec] Code problem (Issue #1)

I reran the code and did not encounter the error message you mentioned. Can you provide the positioning of the error in the code?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

xnjqhofhjgd commented 2 months ago

25 Aug 14:16    INFO =========1/1: Parameters:['seed']=(999,)======= models.lgmrec Traceback (most recent call last):   File "main.py", line 20, in <module>     quick_start(model=args.model, dataset=args.dataset, config_dict=config_dict, save_model=True)   File "/home/featurize/LGMRec/utils/quick_start.py", line 69, in quick_start     model = get_model(config['model'])(config, train_data).to(config['device'])   File "/home/featurize/LGMRec/models/lgmrec.py", line 12, in init     super(LGMRec, self).init(config, dataset)   File "/home/featurize/LGMRec/common/abstract_recommender.py", line 95, in init     self.v_feat = torch.from_numpy(np.load(v_feat_file_path, allow_pickle=True)).type(torch.FloatTensor).to(   File "/environment/miniconda3/lib/python3.7/site-packages/numpy/lib/npyio.py", line 440, in load     pickle_kwargs=pickle_kwargs)   File "/environment/miniconda3/lib/python3.7/site-packages/numpy/lib/format.py", line 771, in read_array     array.shape = shape ValueError: cannot reshape array of size 2621424 into shape (7050,4096)

---Original--- From: "Zhiqiang @.> Date: Mon, Aug 19, 2024 19:19 PM To: @.>; Cc: @.**@.>; Subject: Re: [georgeguo-cn/LGMRec] Code problem (Issue #1)

I reran the code and did not encounter the error message you mentioned. Can you provide the positioning of the error in the code?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

xnjqhofhjgd commented 2 months ago

解决完之后的报错: 25 Aug 14:21 INFO =========1/1: Parameters:['seed']=(999,)======= models.lgmrec Traceback (most recent call last):   File "main.py", line 20, in <module>     quick_start(model=args.model, dataset=args.dataset, config_dict=config_dict, save_model=True)   File "/home/featurize/LGMRec/utils/quick_start.py", line 69, in quick_start     model = get_model(config['model'])(config, train_data).to(config['device'])   File "/home/featurize/LGMRec/models/lgmrec.py", line 43, in init     self.drop = nn.Dropout(p=1-self.keep_rate) TypeError: unsupported operand type(s) for -: 'int' and 'list' [ ]: ​25 Aug 14:21 INFO =========1/1: Parameters:['seed']=(999,)======= models.lgmrec Traceback (most recent call last):   File "main.py", line 20, in <module>     quick_start(model=args.model, dataset=args.dataset, config_dict=config_dict, save_model=True)   File "/home/featurize/LGMRec/utils/quick_start.py", line 69, in quick_start     model = get_model(config['model'])(config, train_data).to(config['device'])   File "/home/featurize/LGMRec/models/lgmrec.py", line 43, in init     self.drop = nn.Dropout(p=1-self.keep_rate) TypeError: unsupported operand type(s) for -: 'int' and 'list' [ ]: ​ 25 Aug 14:21 INFO =========1/1: Parameters:['seed']=(999,)======= models.lgmrec Traceback (most recent call last):   File "main.py", line 20, in <module>     quick_start(model=args.model, dataset=args.dataset, config_dict=config_dict, save_model=True)   File "/home/featurize/LGMRec/utils/quick_start.py", line 69, in quick_start     model = get_model(config['model'])(config, train_data).to(config['device'])   File "/home/featurize/LGMRec/models/lgmrec.py", line 43, in init     self.drop = nn.Dropout(p=1-self.keep_rate) TypeError: unsupported operand type(s) for -: 'int' and 'list'

---Original--- From: "Zhiqiang @.> Date: Mon, Aug 19, 2024 19:19 PM To: @.>; Cc: @.**@.>; Subject: Re: [georgeguo-cn/LGMRec] Code problem (Issue #1)

I reran the code and did not encounter the error message you mentioned. Can you provide the positioning of the error in the code?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>