Код довольно простой.
Код: Выделить всё
from ultralytics import YOLO
model = YOLO("yolov8n.yaml")
results = model.train(data="config.yaml", epochs=2)
Код: Выделить всё
RuntimeError: Attempt to start a new process before the current process has finished its bootstrapping phase. This probably means that you are on Windows and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... The "freeze_support()" line can be omitted if the program is not going to be frozen to produce a executable.
- Python: 3.11 .9
- Доступно CUDA: True
- Версия CUDA: 12.4
Версия YOLOv8: 8.2.100< /li>
Я попробовал использовать библиотеку многопроцессорной обработки со следующей функцией multiprocessing.freeze_support(), но это не сработало.< /п>
Подробнее здесь: https://stackoverflow.com/questions/790 ... ov8-python