mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:56:29 +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
|
||||
pip install requirements.txt
|
||||
pip install pyinstaller
|
||||
|
||||
```
|
||||
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
|
||||
```
|
||||
|
||||
<h3>Build exe</h3>
|
||||
```
|
||||
.\build.exe
|
||||
```
|
||||
|
||||
@@ -2,10 +2,11 @@ pyinstaller --onefile ^
|
||||
--collect-all jwt ^
|
||||
--collect-all requests ^
|
||||
--collect-all psutil ^
|
||||
--collect-all cryptography ^
|
||||
--collect-all msgpack ^
|
||||
--collect-all expecttest ^
|
||||
--collect-all zmq ^
|
||||
--collect-all cryptography ^
|
||||
--collect-all cv2 ^
|
||||
--collect-all onnxruntime ^
|
||||
--hidden-import user ^
|
||||
--hidden-import security ^
|
||||
--hidden-import secure_model ^
|
||||
@@ -17,6 +18,4 @@ pyinstaller --onefile ^
|
||||
--hidden-import ai_config ^
|
||||
--hidden-import inference ^
|
||||
--hidden-import remote_command_handler ^
|
||||
--hidden-import cv2 ^
|
||||
--hidden-import onnxruntime ^
|
||||
start.py
|
||||
@@ -1,6 +1,5 @@
|
||||
import json
|
||||
import mimetypes
|
||||
import time
|
||||
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import traceback
|
||||
from queue import Queue
|
||||
cimport constants
|
||||
import msgpack
|
||||
|
||||
from api_client cimport ApiClient
|
||||
from annotation cimport Annotation
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
setuptools
|
||||
Cython
|
||||
opencv-python
|
||||
numpy
|
||||
onnxruntime-gpu
|
||||
onnxruntime-gpu
|
||||
cryptography
|
||||
psutil
|
||||
msgpack
|
||||
pyjwt
|
||||
zmq
|
||||
requests
|
||||
@@ -3,21 +3,23 @@ from PyInstaller.utils.hooks import collect_all
|
||||
|
||||
datas = []
|
||||
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')
|
||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
||||
tmp_ret = collect_all('requests')
|
||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
||||
tmp_ret = collect_all('psutil')
|
||||
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')
|
||||
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')
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user