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

训练会出现numpy._core模块找不到 #10

Open
zys-creator opened this issue Sep 13, 2024 · 0 comments
Open

训练会出现numpy._core模块找不到 #10

zys-creator opened this issue Sep 13, 2024 · 0 comments

Comments

@zys-creator
Copy link

ModuleNotFoundError: Caught ModuleNotFoundError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/zys/miniconda3/envs/units/lib/python3.9/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/home/zys/miniconda3/envs/units/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/zys/miniconda3/envs/units/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/zys/units/units/dataset.py", line 44, in getitem
img, sample = self.datasource[index]
File "/home/zys/units/units/dataset.py", line 174, in getitem
return dataset[diff % len(dataset)]
File "/home/zys/units/units/datasource.py", line 43, in getitem
annot = self.annots[index]
File "/home/zys/miniconda3/envs/units/lib/python3.9/site-packages/tensorfn/data/lmdb_reader.py", line 109, in getitem
return self.get(str(index).encode("utf-8"))
File "/home/zys/miniconda3/envs/units/lib/python3.9/site-packages/tensorfn/data/lmdb_reader.py", line 92, in get
return read_fn(value)
File "/home/zys/miniconda3/envs/units/lib/python3.9/site-packages/tensorfn/data/lmdb_reader.py", line 9, in pickle_reader
return pickle.loads(byte_str)
ModuleNotFoundError: No module named 'numpy._core'

训练会出现numpy._core模块问题,请问是哪些包版本冲突了吗?

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

1 participant