mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
Update ppseg with eigen functions (#238)
* Update ppseg backend support type * Update ppseg preprocess if condition * Update README.md * Update README.md * Update README.md * Update ppseg with eigen functions * Delete old argmax function * Update README.md * Delete apply_softmax in ppseg example demo * Update ppseg code with createFromTensor function * Delete FDTensor2CVMat function * Update README.md * Update README.md * Update README.md * Update README.md * Update ppseg model.cc with transpose&&softmax in place convert * Update segmentation_result.md * Update model.cc * Update README.md * Update README.md Co-authored-by: Jason <jiangjiajun@baidu.com>
This commit is contained in:
@@ -37,15 +37,15 @@ class PaddleSegModel(FastDeployModel):
|
||||
return self._model.predict(input_image)
|
||||
|
||||
@property
|
||||
def with_softmax(self):
|
||||
return self._model.with_softmax
|
||||
def apply_softmax(self):
|
||||
return self._model.apply_softmax
|
||||
|
||||
@with_softmax.setter
|
||||
def with_softmax(self, value):
|
||||
@apply_softmax.setter
|
||||
def apply_softmax(self, value):
|
||||
assert isinstance(
|
||||
value,
|
||||
bool), "The value to set `with_softmax` must be type of bool."
|
||||
self._model.with_softmax = value
|
||||
bool), "The value to set `apply_softmax` must be type of bool."
|
||||
self._model.apply_softmax = value
|
||||
|
||||
@property
|
||||
def is_vertical_screen(self):
|
||||
|
Reference in New Issue
Block a user