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

 

Author's homepage: boy who loves to laugh. Blog_CSDN blog - deep learning, activities, python field blogger loves to laugh boy. A boy who is good at deep learning, activities, python, etc., and loves to laugh. Focus on algorithms, python, computer vision, image processing, deep learning, pytorch, neural network, opencv fields. https://blog.csdn.net/Code_and516?type=blog Personal profile: Dagong.

Continue to share: machine learning, deep learning, python-related content, daily BUG solutions, and Windows&Linux practical tips.

If you find an error in the article, please point it out, and I will correct it in time. If you have other needs, you can private message me or send me an email: [email protected] 

        Error content OSError: [WinError 1455] The paging file is too small to complete the operation. Error loading "D:\aaaa\envs\gs\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll" or one of its dependencies.

This article will take you to solve this abnormal problem


Table of contents

1. Problem description

Two, the solution

1. The first method, modify the batch-size

2. The second method is to release system resources

3. The third method, increase the paging file size


1. Problem description

        This error is usually caused by a size limit on the paging file (also known as the swap file or virtual memory file). The paging file is a mechanism used by the operating system to help manage memory. On Windows systems, a similar error can result if the paging file is not large enough to meet the program's needs.

Two, the solution

1. The first method, modify the batch-size

        Try to reduce the batch-size. If this exception is reported after the reduction, then proceed to the second method.

2. The second method is to release system resources

        You can try closing other running programs, especially those that are using a lot of memory resources. This can make more memory space available to your program.

3. The third method, increase the paging file size

        Follow the steps below to increase your system's paging file size:

  • Search for and open "Advanced system settings" in the Windows search box.

  • In the dialog box that pops up, click the "Settings" button under the "Performance" section.

 

  • In the new dialog, switch to the "Advanced" tab and click the "Change" button.

 

  • Uncheck the checkbox for "Automatically manage paging file size". 
  • Select the "Custom size" option under the system drive (usually C:, I used D: here) and increase the initial size and maximum size.

  • Confirm the changes and restart your computer.

        It is basically solved here, if it is not resolved, you can send out the abnormal problem or send me a private message.

 

 

Guess you like

Origin blog.csdn.net/Code_and516/article/details/131675596