YOLOV5: OSError: [WinError 1455] The page file is too small to complete the operation.

created at 06-07-2022 views: 13

reason

The root cause is that the GPU configuration is not enough, resulting in an error

solution 1

Modify the yolov5 code, modify the file in yolov5\utils\datasets.py

Modify the parameter num_workers to 0

But this will bring a problem, that is, the speed is much slower when training.

solution 2

  1. Ctrl+q search: "view advanced system settings"
  2. Click Advanced - Settings of Performance
  3. Click Advanced - Change
  4. Then click on the disk where the project is located - custom size (depending on how much free space you have on your disk, you can directly fill the remaining space. Because it only occupies virtual memory when running, it will not affect it actually, don't worry) - Settings (must be The clicked, otherwise it will not work!!) - OK

settings of DATA

created at:06-07-2022
edited at: 06-07-2022: