MedARC-AI / fMRI-reconstruction-NSD

fMRI-to-image reconstruction on the NSD dataset.
MIT License
280 stars 39 forks source link

Environment Issue #34

Open DavisMeee opened 8 months ago

DavisMeee commented 8 months ago

Dear Paul,

Sorry to bother you here again, but I really caught some trouble with the conda environment problem. Today I re-installed the env by running 'setup.sh' file, then run the 'Train_MindEye.py' file. It shows:

_"for train_i, (voxel, image, coco) in enumerate(train_dl): AttributeError: 'NoneType' object has no attribute 'sampler"_

Having checked the whole day, I thought it might come from the accelerate package's version. In the last two weeks, they released a new version (v0.24.0 and v0.24.1). The new version might not be suitable for this project. So the "setup.sh" might change to “conda install -c conda-forge accelerate=0.23.0 -y”

Best,

PaulScotti commented 8 months ago

Thank you very much for pointing this out! I will investigate the issue

HuangWanqiu commented 8 months ago

The same problem occurred for me, and installing accelerate=0.23.0 version resolved the issue. pip install accelerate==0.23.0

zibingo commented 5 months ago

Thank you