facebookresearch / detectron2

Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
https://detectron2.readthedocs.io/en/latest/
Apache License 2.0
30.51k stars 7.48k forks source link

Unable to run exe using pyinstaller with detectron2 #4332

Closed aravindkota closed 2 years ago

aravindkota commented 2 years ago

I have created an exe with pyinstaller and with torch, torch vision modules along with detectron2. But while running the exe, it is throwing the following error.

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\detectron2\build\lib.win-amd64-3.8\detectron2\model_zoo\configs\COCO-InstanceSegmentation\mask_rcnn_regnetx_4gf_dds_fpn_1x.py'

I have placed the cloned repo folder in the dist folder of pyinstaller after creating the exe.

Is there any way I can use detectron2 in single file exe to execute torch based applications.

github-actions[bot] commented 2 years ago

You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";

github-actions[bot] commented 2 years ago

Requested information was not provided in 7 days, so we're closing this issue.

Please open new issue if information becomes available. Otherwise, use github discussions for free-form discussions.