MuhammadMoinFaisal / YOLOv8-DeepSORT-Object-Tracking

YOLOv8 Object Tracking using PyTorch, OpenCV and DeepSORT
666 stars 197 forks source link

how to run it in IDE without using terminal? #12

Closed SAITEJA245 closed 1 year ago

SAITEJA245 commented 1 year ago

Hi Moin, currently, we are running the predict .py from the terminal using python predict.py model=yolov8l.pt source="test3.mp4" show=True can you tell me how to run it from the IDE in the main method of predict.py

if __name__ == "__main__":
    predict()

So that I can debug the code in pyCharm to better understand the flow! How do I pass the model and source in

if __name__ == "__main__":
    predict()
MuhammadMoinFaisal commented 1 year ago

Hi @SAITEJA245 , this requires some modification in the code and to be fair i havenot spend time on this