Updated easypose scripts.
This commit is contained in:
@ -29,10 +29,14 @@ class BaseModel(ABC):
|
||||
self.input_shape = self.session.get_inputs()[0].shape
|
||||
|
||||
input_type = self.session.get_inputs()[0].type
|
||||
if input_type == 'tensor(float16)':
|
||||
self.input_type = np.float16
|
||||
else:
|
||||
if input_type == 'tensor(float32)':
|
||||
self.input_type = np.float32
|
||||
elif input_type == 'tensor(float16)':
|
||||
self.input_type = np.float16
|
||||
elif input_type == 'tensor(uint8)':
|
||||
self.input_type = np.uint8
|
||||
else:
|
||||
raise ValueError('Unknown input type: ', input_type)
|
||||
|
||||
if warmup > 0:
|
||||
self.warmup(warmup)
|
||||
|
||||
Reference in New Issue
Block a user