lebowang-ucr / cGCN_fMRI

Graph Convolution Network for fMRI Analysis Based on Connectivity Neighborhood
49 stars 9 forks source link

NameError: name 'tmp' is not defined #5

Open hongyu007 opened 2 years ago

hongyu007 commented 2 years ago

Hello, I was trying to run the code for ABIDE_leave_one_site_out, and there was a name 'tmp' is not defined error in the Val and Test section of the code. The training section runs well. And I found that there are some differences between run_ABIDE_leave_one_site_out , run_ABIDE_10_fold and run_HCP files, run_ABIDE_leave_one_site_out use the tmp.get_model() function while run_ABIDE_10_fold and run_HCP use get_model() without tmp. I have tried change tmp.get_model() to get_model(), then lead to another error:"TypeError: arg 5 (closure) must be None or tuple".

Below is the questionable code: model = tmp.get_model( graph_path=graph_path, ROI_N=ROI_N, frames=frames, kernels=kernels, k=k, l2_reg=l2_reg,
weight_path=tmp_name, skip=[0, 0])

Can you please take the time to take a look and help me fix this error.

leowang16 commented 2 years ago
  1. run_ABIDE_leave_one_site_out should be incorrect. get_model returns model
  2. plz share a colab, or simply run this for your reference