mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:56:31 +00:00
fix loader bug with _CACHED_HW_INFO
put tile size to name and set it dynamically for AI recognition
This commit is contained in:
@@ -19,6 +19,10 @@ venv\Scripts\pip install -r requirements.txt
|
||||
venv\Scripts\pip install --upgrade pyinstaller pyinstaller-hooks-contrib
|
||||
|
||||
venv\Scripts\python setup.py build_ext --inplace
|
||||
if %errorlevel% neq 0 (
|
||||
echo "Error building cython extension"
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
echo install azaion-loader
|
||||
venv\Scripts\pyinstaller --name=azaion-loader ^
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
cdef str _CACHED_HW_INFO
|
||||
|
||||
cdef class HardwareService:
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -1,13 +1,17 @@
|
||||
import os
|
||||
import subprocess
|
||||
cimport constants
|
||||
|
||||
cdef str _CACHED_HW_INFO = None
|
||||
|
||||
cdef class HardwareService:
|
||||
cdef str _CACHED_HW_INFO = None
|
||||
|
||||
@staticmethod
|
||||
cdef str get_hardware_info():
|
||||
global _CACHED_HW_INFO
|
||||
|
||||
if _CACHED_HW_INFO is not None:
|
||||
constants.log(<str>"Using cached hardware info")
|
||||
return <str> _CACHED_HW_INFO
|
||||
|
||||
if os.name == 'nt': # windows
|
||||
|
||||
Reference in New Issue
Block a user