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

Help wanted #37

Open
Chris36839 opened this issue Dec 4, 2023 · 2 comments
Open

Help wanted #37

Chris36839 opened this issue Dec 4, 2023 · 2 comments

Comments

@Chris36839
Copy link

Hi, I'm encountering the following error while running "Train_MindEye.py" and am unable to resolve it. I hope someone can help me identify the issue and suggest possible solutions.
Firstly, I got the following error:
Traceback (most recent call last):
File "/mnt/d/Files/Codes/fMRI-reconstruction-NSD/src/Train_MindEye.py", line 585, in
for train_i, (voxel, image, coco) in enumerate(train_dl):
File "/root/miniconda3/envs/mindeye/lib/python3.10/site-packages/accelerate/data_loader.py", line 630, in iter
self.set_epoch(self.iteration)
File "/root/miniconda3/envs/mindeye/lib/python3.10/site-packages/accelerate/data_loader.py", line 707, in set_epoch
if hasattr(self.batch_sampler.sampler, "set_epoch"):
AttributeError: 'NoneType' object has no attribute 'sampler'

So, I changed "utilis.py"
train_dl = torch.utils.data.DataLoader(train_data, batch_size=32, num_workers=1, shuffle=False), set batch_size to 32
but I still can not run the training process
image

@DavisMeee
Copy link

Hey, you can see my solution in #34 And I think this may help you to solve this

@Rui00000
Copy link

Rui00000 commented Apr 7, 2024

Hey,have you resolved this problem?

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

3 participants