mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
[Fix] Fix typo in 'LetterResize' transform (#1618)
This commit is contained in:
parent
5d0a08eafb
commit
db8de7ec1f
@ -97,7 +97,7 @@ class LetterResize : public Transform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Tensor dst_img;
|
Tensor dst_img;
|
||||||
if (!(no_pad_shape[0] == h, no_pad_shape[1] == w)) {
|
if (!(no_pad_shape[0] == h && no_pad_shape[1] == w)) {
|
||||||
OUTCOME_TRY(resize_.Apply(src_img, dst_img, no_pad_shape[0], no_pad_shape[1]));
|
OUTCOME_TRY(resize_.Apply(src_img, dst_img, no_pad_shape[0], no_pad_shape[1]));
|
||||||
} else {
|
} else {
|
||||||
dst_img = src_img;
|
dst_img = src_img;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user