mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:26:31 +00:00
remove cpdef, add constants h
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user