Complete error oserror: [winerror 1455] the page file is too small to complete the operation. Error loading “C:\ProgramData\Anaconda3\lib\site-packages\torch\lib\shm.dll” or one of its dependencies.
Scenario: Running the reid-strong-baseline model
Reason: The model is too large, and the system allocated paging memory is too small to train
Environment: windows10, cuda version: 11.1, pytorch version: 1.11.0+cu113
(1) Query your CUDA version:
nvidia-smi
(2) Query your own version of pytorch
import torch
print(torch.__version__)
Solution: Right-click Properties->Advanced System Settings->Advanced->Settings->Advanced->Programs->Change->Uncheck “Automatically manage…” (Define initial size and maximum size) (set here according to the actual available space, as large as possible) -> click “Settings” -> OK -> reboot
If the error is still reported after reboot, the possible reasons are: (1) the custom size is still too small (for example, I set 10G at the beginning, but still reported an error, and subsequently modified to 100G (100000M) to run successfully) (2) the batch_size is too large, you can adjust the size appropriately (for example, reduce 64 to 16)
Read More:
- Pytorch: How to Handle error warning conda.gateways.disk.delete:unlink_or_rename_to_trash(140)
- [Solved] torchsummary Error: RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.F
- Apex install error: the environment is not compatible
- [Solved] RuntimeError: ProcessGroupNCCL is only supported with GPUs, no GPUs found
- [Solved] RuntimeError: cublas runtime error : resource allocation failed at
- Pytorch CUDA Error: UserWarning: CUDA initialization: CUDA unknown error…
- [Solved] mmdetection Error: ImportError: /home/user/repos/mmdetection/mmdet/ops/dcn/deform_conv_cuda.cpython-37m-x
- [Solved] bushi RuntimeError: version_ <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /pytorch/caffe2/s
- [Solved] RuntimeError: Error(s) in loading state_dict for BertForTokenClassification
- RuntimeError: CUDA error: an illegal memory access was encountered
- YOLOX Model conversion error: [TensorRT] ERROR: runtime.cpp (25) – Cuda Error in allocate: 2 (out of memory)
- [Solved] RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at
- Pytorch directly creates a tensor on the GPU error [How to Solve]
- [Solved] torchvision Error: UserWarning: Failed to load image Python extension: Could not find module
- [Solved] RuntimeError : PyTorch was compiled without NumPy support
- [Solved] RuntimeError: Error(s) in loading state_dict for Net:
- urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
- Pytorch ValueError: Expected more than 1 value per channel when training, got input size [1, 768
- [Solved] RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the
- [Pytorch Error Solution] Pytorch distributed RuntimeError: Address already in use