Something seems to be happening when the model() function is called, where a --json argument is being passed. Another user has apparently successfully managed to run YOLO on windows, without this issue, YOLO v8 をTouchDesignerで使う - なるように、なる
Another user is receiving this same issue on Windows, that I’m receiving on Mac An unknown argument: --json · Issue #8803 · ultralytics/ultralytics · GitHub. Ultralytics github staff are claiming its a TD specific issue, since we’re not explicitly passing in a --json argument. I wouldn’t know where to start looking for the solution. Maybe a version specific issue? Im on 2023.11290. I dont have CUDA on my Mac, but it seems not required to run YOLO.
I could get errors pointing to the YOLO libs but it didn’t lead to anything. I escalated the issue with the developers to have a deeper look with additional debugging tools.
This error sounds so familiar to the multiprocessing error. Maybe newer versions of torch started using the multiprocessing module and when this is run in TD this will call touchdesigner.exe instead python.exe