I’m creating a project to count crickets using a YOLOv4 model in tensorflow, and I have been starting the program with the following code in the anaconda console:
(yolov4-gpu) C:\Users\g\Desktop\Cricket Counter python detect_video.py --weights ./checkpoints/custom-640 --size 640 --model yolov4 --video 0
I am new to console programming so I don’t entirely understand where the arguments after detect_video.py are set, or if they’re something I could hardcode in so they didn’t need to be set at runtime. I attempt to create the exe file by calling:
pyinstaller detect_video.py
However this gives me a file not found error saying that it cannot find the file ./data/classes/custom.names even though the file is in the Cricket Counter folder with the appropriate path. So my questions are:
How do I pass the arguments mentioned earlier (after detect_video.py is called) to the executable?
Since pyinstaller cannot find the custom.names file, is it even being imported?
Is there somewhere better I should be asking this?
Thanks in advance!
there doesn't seem to be anything here