ShizheHu / Joint-Contrastive-Triple-learning

Code about the paper "Joint Contrastive Triple-learning for Deep Multi-view Clustering"
11 stars 0 forks source link

运行解压的代码遇到问题 #1

Open Lu0Key opened 1 year ago

Lu0Key commented 1 year ago

您好,我在运行python -m models.train -c coil_resnet 时遇到了AttributeError: module 'config.experiments.coil_resnet' has no attribute 'model_config' 请问可能是什么问题导致的

 File "/home/aaaa/projects/JCT-Coil20/src/models/train.py", line 60, in main
    experiment_name, cfg = config.get_experiment_config()
  File "/home/aaaa/projects/JCT-Coil20/src/config/__init__.py", line 60, in get_experiment_config
    cfg = get_config_by_name(name)
  File "/home/aaaa/projects/JCT-Coil20/src/config/__init__.py", line 46, in get_config_by_name
    cfg.model_config.loss_config.n_clusters = cfg.model_config.cm_config.n_clusters
AttributeError: module 'config.experiments.coil_resnet' has no attribute 'model_config'

注: vscode 上运行的,在src目录下运行的python -m models.train -c coil_resnet

ChenyuxinXMU commented 1 year ago

您好,我在本地上运行代码时也遇到了同样的问题,该如何解决呢? @ShizheHu

ShizheHu commented 1 year ago

将参数定义中的coil_resnet修改为coil_resnet_contrast即可

ChenyuxinXMU commented 1 year ago

感谢您的解答。 另外我注意到这个代码似乎只能处理图像数据,文章中提到模型使用全连接层来处理一维特征数据,请问能否分享一下代码呢?

ShizheHu commented 1 year ago

额,没有额外的代码了,可直接输入多视角数据的N*D (N代表样本个数,D代表特征维度)的矩阵表示,即可进行网络训练。

Wenxon commented 9 months ago

老师您好,文章提到除coil数据集之外的数据集使用的是三层全连接作为encoder,请问老师这部分代码具体是写在哪里呢?感谢老师解答

ShizheHu commented 9 months ago

三层全连接的encoder在文件夹lib下的backbones文件中

老师您好,文章提到除coil数据集之外的数据集使用的是三层全连接作为encoder,请问老师这部分代码具体是写在哪里呢?感谢老师解答