Closed jhih-ching-yeh closed 1 year ago
Maybe you can try to install another version of Pytorch: https://pytorch.org/get-started/previous-versions/. Pytorch 1.8 or 1.7 should work well.
May I know your platform? Windows or Linux? Because after solving this problem, it still has some error about pytorch when I trained the model.
File "/home/ailab/anaconda3/envs/HiVT/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1145, in _get_data raise RuntimeError('Pin memory thread exited unexpectedly') RuntimeError: Pin memory thread exited unexpectedly
I followed the information of thie error online, it stilled existed.
The code is tested on Linux, Ubuntu 18.04. I think this error can be solved by setting pin_memory to False or setting persistent_workers to False. These two parameters are both in train.py.
Your advice works! Thanks a lot!!
Excuse me, when I did the following instruction, I got some error.
conda install pytorch==1.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge
And the error message is as following. `Solving environment: failedPackagesNotFoundError: The following packages are not available from current channels:
Current channels:
Even I changed my cuda version to 11.0, I still can't solve the problem
Thanks!!