mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 11:26:31 +00:00
complete requirements.txt list
fix build.cmd
This commit is contained in:
@@ -57,6 +57,8 @@ This is crucial for the build because build needs Python.h header and other file
|
|||||||
```
|
```
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install requirements.txt
|
pip install requirements.txt
|
||||||
|
pip install pyinstaller
|
||||||
|
|
||||||
```
|
```
|
||||||
In case of fbgemm.dll error (Windows specific):
|
In case of fbgemm.dll error (Windows specific):
|
||||||
|
|
||||||
@@ -67,3 +69,8 @@ In case of fbgemm.dll error (Windows specific):
|
|||||||
```
|
```
|
||||||
python setup.py build_ext --inplace
|
python setup.py build_ext --inplace
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<h3>Build exe</h3>
|
||||||
|
```
|
||||||
|
.\build.exe
|
||||||
|
```
|
||||||
|
|||||||
@@ -2,10 +2,11 @@ pyinstaller --onefile ^
|
|||||||
--collect-all jwt ^
|
--collect-all jwt ^
|
||||||
--collect-all requests ^
|
--collect-all requests ^
|
||||||
--collect-all psutil ^
|
--collect-all psutil ^
|
||||||
--collect-all cryptography ^
|
|
||||||
--collect-all msgpack ^
|
--collect-all msgpack ^
|
||||||
--collect-all expecttest ^
|
|
||||||
--collect-all zmq ^
|
--collect-all zmq ^
|
||||||
|
--collect-all cryptography ^
|
||||||
|
--collect-all cv2 ^
|
||||||
|
--collect-all onnxruntime ^
|
||||||
--hidden-import user ^
|
--hidden-import user ^
|
||||||
--hidden-import security ^
|
--hidden-import security ^
|
||||||
--hidden-import secure_model ^
|
--hidden-import secure_model ^
|
||||||
@@ -17,6 +18,4 @@ pyinstaller --onefile ^
|
|||||||
--hidden-import ai_config ^
|
--hidden-import ai_config ^
|
||||||
--hidden-import inference ^
|
--hidden-import inference ^
|
||||||
--hidden-import remote_command_handler ^
|
--hidden-import remote_command_handler ^
|
||||||
--hidden-import cv2 ^
|
|
||||||
--hidden-import onnxruntime ^
|
|
||||||
start.py
|
start.py
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
import mimetypes
|
import mimetypes
|
||||||
import time
|
|
||||||
|
|
||||||
import cv2
|
import cv2
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import traceback
|
import traceback
|
||||||
from queue import Queue
|
from queue import Queue
|
||||||
cimport constants
|
cimport constants
|
||||||
import msgpack
|
|
||||||
|
|
||||||
from api_client cimport ApiClient
|
from api_client cimport ApiClient
|
||||||
from annotation cimport Annotation
|
from annotation cimport Annotation
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
setuptools
|
|
||||||
Cython
|
Cython
|
||||||
opencv-python
|
opencv-python
|
||||||
numpy
|
numpy
|
||||||
onnxruntime-gpu
|
onnxruntime-gpu
|
||||||
|
cryptography
|
||||||
|
psutil
|
||||||
|
msgpack
|
||||||
|
pyjwt
|
||||||
|
zmq
|
||||||
|
requests
|
||||||
@@ -3,21 +3,23 @@ from PyInstaller.utils.hooks import collect_all
|
|||||||
|
|
||||||
datas = []
|
datas = []
|
||||||
binaries = []
|
binaries = []
|
||||||
hiddenimports = ['user', 'security', 'secure_model', 'api_client', 'hardware_service', 'constants', 'annotation', 'remote_command', 'ai_config', 'inference', 'remote_command_handler', 'cv2', 'onnxruntime']
|
hiddenimports = ['user', 'security', 'secure_model', 'api_client', 'hardware_service', 'constants', 'annotation', 'remote_command', 'ai_config', 'inference', 'remote_command_handler']
|
||||||
tmp_ret = collect_all('jwt')
|
tmp_ret = collect_all('jwt')
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
||||||
tmp_ret = collect_all('requests')
|
tmp_ret = collect_all('requests')
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
||||||
tmp_ret = collect_all('psutil')
|
tmp_ret = collect_all('psutil')
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
||||||
tmp_ret = collect_all('cryptography')
|
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
|
||||||
tmp_ret = collect_all('msgpack')
|
tmp_ret = collect_all('msgpack')
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
||||||
tmp_ret = collect_all('expecttest')
|
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
|
||||||
tmp_ret = collect_all('zmq')
|
tmp_ret = collect_all('zmq')
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
||||||
|
tmp_ret = collect_all('cryptography')
|
||||||
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
||||||
|
tmp_ret = collect_all('cv2')
|
||||||
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
||||||
|
tmp_ret = collect_all('onnxruntime')
|
||||||
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
||||||
|
|
||||||
|
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
|
|||||||
Reference in New Issue
Block a user