mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:56:31 +00:00
put constant tile size temporarily
This commit is contained in:
@@ -118,8 +118,9 @@ cdef class Inference:
|
|||||||
self.engine = OnnxEngine(res.data)
|
self.engine = OnnxEngine(res.data)
|
||||||
|
|
||||||
self.model_height, self.model_width = self.engine.get_input_shape()
|
self.model_height, self.model_width = self.engine.get_input_shape()
|
||||||
self.tile_width = self.model_width
|
#todo: temporarily, send it from the client
|
||||||
self.tile_height = self.model_height
|
self.tile_width = 550
|
||||||
|
self.tile_height = 550
|
||||||
|
|
||||||
cdef preprocess(self, frames):
|
cdef preprocess(self, frames):
|
||||||
blobs = [cv2.dnn.blobFromImage(frame,
|
blobs = [cv2.dnn.blobFromImage(frame,
|
||||||
|
|||||||
Reference in New Issue
Block a user