enoche / MMRec

A Toolbox for MultiModal Recommendation. Integrating 10+ Models...
GNU General Public License v3.0
367 stars 46 forks source link

ModuleNotFoundError: No module named 'common.encoders', LightGCN_Encoder #13

Closed zhongshsh closed 1 year ago

zhongshsh commented 1 year ago

when I try to run SELFCFED_LGN, i.e. SelfCF (?). the code raises an error whose message is as follows:

    from common.encoders import LightGCN_Encoder
ModuleNotFoundError: No module named 'common.encoders'

It means that LightGCN_Encoder is not existed.

tjehddn560 commented 1 year ago

Maybe you install 'common' package through pip. So, if you change 'common' folder's name to something else(eg.common1) and modify your code like 'from common1.encoders ~...', then your code will run well.

zhongshsh commented 1 year ago

Thank you for your reply. but I can't find the module LightGCN_Encoder in this repo image

enoche commented 1 year ago

@zhongshsh Thank you so much for your feedback. We have resolved the issue by adding the missing encoders.py file and updating selfcfed_lgn.py to correctly reference it. We appreciate your help in identifying and fixing this bug. 😊

@tjehddn560 Thanks a lot for your kind assistance on this issue.