elyha7 / yoloface

Yolov5 Face Detection
GNU General Public License v3.0
120 stars 37 forks source link

Faulty append to python system path #10

Open SimonHedrich2 opened 1 year ago

SimonHedrich2 commented 1 year ago

https://github.com/elyha7/yoloface/blob/04bfe3459db5b1254e805eeaa3ec660afa52f899/face_detector.py#L14

I think this needs to be sys.path.append(os.path.abspath(os.path.dirname(__file__))) instead of sys.path.append(os.path.abspath(os.path.join(os.path.dirname("__file__"), '..')))