remove cpdef, add constants h

This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-08-12 14:53:14 +03:00
parent ad782bcbaa
commit 9e4dc5404c
6 changed files with 68 additions and 13 deletions
+2 -2
View File
@@ -97,7 +97,7 @@ cdef class Inference:
except Exception as e:
updater_callback(f'Error. {str(e)}')
cpdef init_ai(self):
cdef init_ai(self):
if self.engine is not None:
return
@@ -292,7 +292,7 @@ cdef class Inference:
self._process_images_inner(cmd, ai_config, chunk)
cpdef split_to_tiles(self, frame, path, overlap_percent):
cdef split_to_tiles(self, frame, path, overlap_percent):
constants_inf.log(<str>f'splitting image {path} to tiles...')
img_h, img_w, _ = frame.shape
stride_w = int(self.tile_width * (1 - overlap_percent / 100))