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

NameError: name 'nice_train_loader' is not defined #61

Closed
WesleyWu42 opened this issue Oct 27, 2023 · 4 comments
Closed

NameError: name 'nice_train_loader' is not defined #61

WesleyWu42 opened this issue Oct 27, 2023 · 4 comments

Comments

@WesleyWu42
Copy link

when i try to train 3d dataset as example,it reported NameError: name 'nice_train_loader' is not defined,how to fix this

@danielsmileplz
Copy link

same trouble here. anyone knows how to fix it?

@danielsmileplz
Copy link

i see. the problem is in 'dataset.py'. you need to write another dataset class.

@ignacio-scarinci
Copy link

Hi, the problem is in the readme, specifically in

python train.py -net sam -mod sam_adpt -exp_name msa-3d-sam-btcv -sam_ckpt ./checkpoint/sam/sam_vit_b_01ec64.pth -image_size 1024 -b 8 -dataset decathlon -thd True -chunk 96 -dataset ../data -num_sample 4

If you see that the dataset args is doubled, then train.py understands that the dataset is ../data. You need to change the second dataset to data_path. This simple change will solve the problem.

@WuJunde
Copy link
Collaborator

WuJunde commented Feb 9, 2024

Hi, the problem is in the readme, specifically in

python train.py -net sam -mod sam_adpt -exp_name msa-3d-sam-btcv -sam_ckpt ./checkpoint/sam/sam_vit_b_01ec64.pth -image_size 1024 -b 8 -dataset decathlon -thd True -chunk 96 -dataset ../data -num_sample 4

If you see that the dataset args is doubled, then train.py understands that the dataset is ../data. You need to change the second dataset to data_path. This simple change will solve the problem.

Thank you for your solution, I have fixed ReadMe

@WuJunde WuJunde closed this as completed Feb 9, 2024
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

4 participants