I've wrote a long explanation of my issue but for some reason discord just deleted it.
Basically, my project is detection and classification of five animals with YOLOv8. For whatever reason (I've included a traceback but it got deleted...) it works in cmd and Spyder, but it doesn't work at all in PyCharm or VSCode. No venv. In fact, it tries to access a different path I had for a different project for some reason, but only tries to do so PyCharm and VSCode. I don't have any code saying to look for this path at all so it makes no sense.
I've tried redownloading YOLOv8 model, I've tried opening from Anaconda instead, I've tried print(os.getcwd()) to know where my things are and they are where they have to be.
The only thing I can think of is to recreate my project copy-pasting only my code. But I would like to know why VSCode and PyCharm don't work well in this project when cmd and Spyder have not problems at all.
Edit: I included a tree of my project and snippets of my code but as Discord deleted it...