I have faced the same problem and stuck for 2 hours and only solution is to recheck the files .And in file do not create something like microprocessor like this file because ultralytics already contain this file and due to this you recive the error
here is error
ImportError: cannot import name 'YOLO' from partially initialized module 'ultralytics'
And this is my project structure "machine learning /object detection/multiprocessing.py"
and error is "ultralytics
→ torch
→ multiprocessing
(your file) → ultralytics
again..."
solution is :
change its name
rename from multiprocessing.py
to something else, like my_process.py
.
also what is circular import ?
A circular import is when:
File A imports File B
File B imports File A