Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment Issue #34

Open
DavisMeee opened this issue Nov 9, 2023 · 3 comments
Open

Environment Issue #34

DavisMeee opened this issue Nov 9, 2023 · 3 comments

Comments

@DavisMeee
Copy link

DavisMeee commented Nov 9, 2023

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
Copy link
Collaborator

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

@HuangWanqiu
Copy link

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

@zibingo
Copy link

zibingo commented Jan 26, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@HuangWanqiu @PaulScotti @DavisMeee @zibingo and others