MedARC-AI / fMRI-reconstruction-NSD

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

Environment Issue #34

Open DavisMeee opened 1 year ago

DavisMeee commented 1 year 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 1 year ago

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

HuangWanqiu commented 1 year 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 10 months ago

Thank you