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

YOLOv8 Training Your Own Dataset #12788

Open
1 task done
smallMantou opened this issue May 18, 2024 · 2 comments
Open
1 task done

YOLOv8 Training Your Own Dataset #12788

smallMantou opened this issue May 18, 2024 · 2 comments
Labels
question Further information is requested

Comments

@smallMantou
Copy link

Search before asking

Question

I created a datasets folder to place my own images while training my dataset
1
And write the model parameters in ultralytics 8.2.0/ultralytcs/cfg/models/v8/grayscale_yolov8s.yaml
2
Write dataset parameters in ultralys-8.2.0/ultralys/cfg/dataset/grayscale_data.yaml.
3
Finally, train it
4
He will prompt the following errors
OSError: [WinError 1455] 页面文件太小,无法完成操作。 Error loading "D:\A\A1\envs\YOLOv8\lib\site-packages\torch\lib\cublas64_11.dll" or one of its dependencies.

Additional

No response

@smallMantou smallMantou added the question Further information is requested label May 18, 2024
@smallMantou
Copy link
Author

ImportError: DLL load failed while importing cv2: 页面文件太小,无法完成操作。

@glenn-jocher
Copy link
Member

Hello,

This error typically occurs due to insufficient system memory or page file size, especially when loading large libraries like OpenCV in constrained environments.

You can try increasing the size of your system's page file:

  1. Go to Control Panel > System and Security > System > Advanced system settings.
  2. Under the Advanced tab, click on Settings in the Performance section.
  3. Go to the Advanced tab in the Performance Options window, click on Change under Virtual memory.
  4. Uncheck Automatically manage paging file size for all drives.
  5. Select Custom size and enter a larger initial and maximum size for your page file.
  6. Click Set, then OK and restart your computer.

Make sure your Python environment has enough memory allocated, and consider closing other memory-intensive applications while running your code.

If the problem persists even after increasing the page file size, please ensure that you have all the necessary system requirements and dependencies installed for OpenCV and PyTorch.

Hope this helps! Let us know how it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants