Skip to content

Commit

Permalink
add scale (#2291)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunting78 authored Oct 21, 2024
1 parent e44807a commit 70a0a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddlex/inference/models/object_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def build_normalize(
norm_type=None,
mean=[0.485, 0.456, 0.406],
std=[0.229, 0.224, 0.225],
is_scale=None,
is_scale=True,
):
if is_scale:
scale = 1.0 / 255.0
Expand Down

0 comments on commit 70a0a58

Please sign in to comment.