yolov7
yolov7 copied to clipboard
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEIMIoP5f/utils/torch_utils.pyc' , [4661] Failed to execute script 'inference' due to unhandled exception!, torchvision/io/image.py:13: UserWarning: Failed to load image Python extension:
Hi,
I am trying to convert YOLOv7 code (detect.py) into EXE file. I successfully converted detec.py into EXE using auto-py-to-exe in linux. but when I execute ./inference (EXE name) in my linux terminal then I got the following error:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEIMIoP5f/utils/torch_utils.pyc' [4661] Failed to execute script 'inference' due to unhandled exception!
I am unable to run EXE by just clicking on it or by using command in terminal i.e., ./inference. I am using standard YOLOV7 code and its .pt file only.
Used Environment: Ubuntu 16.04 Python 3.8.18 torch==1.12.1 torchvision==0.13.1 CUDA 10.2 all other libraries are installed using pip install -r requirements.txt and torch and torchvision are installed separately using pip install torch==1.12.1 torchvision==0.13.1 (for CUDA compatibility). Also torch.cuda.is_available() is TRUE.
Below is the snapshot of the whole error. I am unable to understand where is the issue occurring. Please suggest some solution
. It will be helpful for me.
Thanks in Advance.