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

您好 training问题 #58

Open
Heartnlh1 opened this issue Dec 17, 2024 · 1 comment
Open

您好 training问题 #58

Heartnlh1 opened this issue Dec 17, 2024 · 1 comment

Comments

@Heartnlh1
Copy link

Epoch 0: 0%| | 0/250 [00:00<?, ?it/s]Exception in background worker 5:
expected np.ndarray (got numpy.ndarray)
Traceback (most recent call last):
File "/home/miniconda3/envs/segmamba/lib/python3.10/site-packages/batchgenerators/dataloading/nondet_multi_threaded_augmenter.py", line 55, in producer
item = transform(**item)
File "/home/miniconda3/envs/segmamba/lib/python3.10/site-packages/batchgenerators/transforms/abstract_transforms.py", line 88, in call
data_dict = t(**data_dict)
File "/home/miniconda3/envs/segmamba/lib/python3.10/site-packages/batchgenerators/transforms/utility_transforms.py", line 66, in call
data_dict[key] = self.cast(torch.from_numpy(data_dict[key])).contiguous()
TypeError: expected np.ndarray (got numpy.ndarray)

在training的代码运行过程中遇到了numpy的报错,这是numpy版本的问题吗,但我试了很多版本都不行

@ge-xing
Copy link
Owner

ge-xing commented Dec 19, 2024

更新下numpy

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

2 participants