This is an interesting issue that I discovered when using yolov10. When my num_work is configured to 0, the training code executes normally. However, when the num_work parameter is 4/8, when my code reaches init under InfiniteDataLoader, self. iterator=super() is called__ When using the item__ () method, I immediately create a process with a number of num_works to call the py file I used to train the code. This repeated process ultimately leads to system OOM. I really want to record a video of this interesting issue, but unfortunately, I don’t know how to post it. I have to take screenshots of the important part of the log code and send them out
I have heard before that it is best not to set num_work to a value greater than 0 in Windows. Now, this question makes me curious. Why can’t this parameter be set to greater than 0 in Windows? From a bottom-up design perspective
this is when num_work was zeros:
this is when num_work was 8 or 4