How to convert python YOLO-V5 into exe execution file

99 views Asked by At

I encountered this problem. I mainly wanted to convert YOLO-V5's detect.py program into an exe executable file. However, after I used pyinstaller to convert the py program into exe, I found that some packages were missing. I added the missing packages. After finishing the process, the exe executable file can run but it says that the specified file path cannot be found: D:..\yolo\dist\detect\utils\general.pyc

Tried methods:

  1. I saw the general.py file in the utils folder of YOLO-V5, and there is a general.cpython-37.pyc file under the pycache folder. I tried to put it under the utils folder and changed the name Change to general.pyc, but the converted EXE program will crash with the error:

unicodedecodeerror: 'utf-8' codec cannot decode byte 0xe7 in position 9: invalid contiguous bytes

As a result, the model cannot be inferred in the end.

0

There are 0 answers