Skip to content

Commit

Permalink
Resolve mean/std swap for VITDet backbone (keras-team#2087)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianstenbit authored Sep 28, 2023
1 parent febe3e2 commit 0952ae3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified keras_cv/models/backbones/vit_det/data/vitdet_base_out.npz
Binary file not shown.
4 changes: 2 additions & 2 deletions keras_cv/models/backbones/vit_det/vit_det_backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def __init__(
x = keras.layers.Rescaling(1.0 / 255.0)(x)

# VITDet scales inputs based on the standard ImageNet mean/stddev.
x = (x - ops.array([0.229, 0.224, 0.225], dtype=x.dtype)) / (
ops.array([0.485, 0.456, 0.406], dtype=x.dtype)
x = (x - ops.array([0.485, 0.456, 0.406], dtype=x.dtype)) / (
ops.array([0.229, 0.224, 0.225], dtype=x.dtype)
)

x = ViTDetPatchingAndEmbedding(
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 0952ae3

Please sign in to comment.