perf(det): keep DetPreProcess mean/std in float32 (#756)

Signed-off-by: ExtReMLapin <3909752+ExtReMLapin@users.noreply.github.com>
This commit is contained in:
ExtReMLapin authored and GitHub committed 2026-10-25 21:42:33 +08:00
1 parent b40c0f84b8
commit 558f566069
1 file changed
+2 -2
+2 -2
View File
@@ -50,8 +50,8 @@ class DetPreProcess:
if std is None:
std = [0.5, 0.5, 0.5]
self.mean = np.array(mean)
self.std = np.array(std)
self.mean = np.array(mean, dtype=np.float32)
self.std = np.array(std, dtype=np.float32)
self.scale = 1 / 255.0
self.limit_side_len = limit_side_len