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

Exception of pin_memory #9

Open
giladshtern opened this issue Dec 8, 2020 · 0 comments
Open

Exception of pin_memory #9

giladshtern opened this issue Dec 8, 2020 · 0 comments

Comments

@giladshtern
Copy link

giladshtern commented Dec 8, 2020

I'm having a constant exception after running the following code part:

from fastai.vision import *
import warnings
warnings.filterwarnings('ignore')
path = 'G:/DataScienceProject/Kaggle-Prostate-cANcer-graDe-Assessment/train'
folderList = os.listdir(path)
data = ImageDataBunch.from_folder(path,
train=".",
test="../cv",
valid_pct=0.2,
classes=folderList)

from fastai.metrics import error_rate # 1 - accuracy
learn = create_cnn(data, models.resnet34, metrics=accuracy)
defaults.device = torch.device('cuda')
learn.fit_one_cycle(10)

Fastai version: 1.0.61

Exception:
RuntimeError: Caught RuntimeError in pin memory thread for device 0.
Original Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\torch\utils\data_utils\pin_memory.py", line 31, in _pin_memory_loop
data = pin_memory(data)
File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\torch\utils\data_utils\pin_memory.py", line 55, in pin_memory
return [pin_memory(sample) for sample in data]
File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\torch\utils\data_utils\pin_memory.py", line 55, in
return [pin_memory(sample) for sample in data]
File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\torch\utils\data_utils\pin_memory.py", line 47, in pin_memory
return data.pin_memory()
RuntimeError: error in LoadLibraryA

-Gilad

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