Closed zhangdanfeng888 closed 5 months ago
Download this file cocoID.zip
Download this file cocoID.zip下载此文件 cocoID.zip
Thanks. I download the cocoID.zip then unzip it, it only contains four files: cocoId_correct_sub1.npy, cocoId_correct_sub2.npy, cocoId_correct_sub5.npy and cocoId_correct_sub7.npy, should I rename these four files to "trn_cocoID_correct_sub.npy" or "test_cocoID_correct_sub.npy”"?
No, thanks for your reminder, I have revised the readMe
Okay, I'll try that in a minute. Thank you. By the way, there is a slight error here: It should be "environment_1.yaml", haha.
Thanks for your reminder
@ReedOnePeck I find another question when I run python Feature extractor/Structural_feature_extraction.py:
Traceback (most recent call last):
File "Feature extractor/Structural_feature_extraction.py", line 113, in
What should I do to solve this question?
RuntimeError: Input type (torch.cuda.DoubleTensor) and weight type (torch.cuda.FloatTensor) should be the same As you can see from this, the incoming data is in a different format that causes the error, and you should use pycharm's debug to check the points where the error occurred by hitting the breakpoint. Go to CSDN or Google to find a solution to the problem.
@ReedOnePeck Hello, sorry to trouble you again. When I run python Feature extractor/Structural_feature_selection.py, I get "cuda out of memory", could you share files from "index_save_path" in the code? Thanks a lot.
Sorry for replying you so late. I have uploaded the required documents for participant 1.
Sorry for replying you so late. I have uploaded the required documents for participant 1.
Thanks for your reply. I want to run "python Feature decoding/Semantic_feature_decoding.py", but I don't know where is the file in the code. Could you tell me where are these files? Are they root in "Feature extractor"? By the way, I modify the "ROIs" to ["nsd_train_fmriavg_nsdgeneral_sub1"], am I right?
1. (1)'trn_file_ex' and 'val_file_ex' refer to the folders where the preprocessed fMRI data are stored (2)The other four file names refer to the path where you save the semantic features. You should run the files in "Feature extractor" to save the features first. (3)You don't need to pay attention to recons_img_idx, it seems to be a mistake I made when organizing the code.
2. ROI refers to different brain region numbers, such as V1, V2, IT, etc. It depends on the format of your preprocessed fMRI data. For specific ROI entries, you can refer to line 21of MindDiffuser/Feature decoding /Semantic_feature_decoding.py
Hello, I don't understand this part:
"Run the code(https://github.com/styvesg/nsd/blob/master/data_preparation.ipynb) to obtain the textual descriptions of the stimulus images from NSD in the COCO dataset. Rename the corresponding file as "trn_cocoID_correct.npy" or "test_cocoID_correct.npy" and save it in the path "your_folder/data/utils_data/"."
The file(data_preparation.ipynb) has too much code, should I run all this code in sequence? Or can you provide me the “trn_cocoID_correct.npy” and “test_cocoID_correct.npy” files? Thanks a lot.