Skip to content

Commit 7dee2b6

Browse files
committed
fixes
1 parent 6251835 commit 7dee2b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

keras_hub/src/models/xception/xception_image_classifier_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ def setUp(self):
2727
scale=1.0 / 127.5,
2828
offset=-1.0,
2929
)
30-
self.prepocessor = XceptionImageClassifierPreprocessor(
30+
self.preprocessor = XceptionImageClassifierPreprocessor(
3131
image_converter=self.image_converter,
3232
)
3333
self.init_kwargs = {
3434
"backbone": self.backbone,
35-
"preprocessor": self.prepocessor,
35+
"preprocessor": self.preprocessor,
3636
"num_classes": 2,
3737
"pooling": "avg",
3838
"activation": "softmax",

tools/checkpoint_conversion/convert_xception_checkpoints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def validate(hub_model, applications_model):
6060

6161

6262
if __name__ == "__main__":
63-
print("✅ keras.applicaitons model loaded")
63+
print("✅ keras.applications model loaded")
6464
applications_model = keras.applications.Xception(weights="imagenet")
6565
print("✅ KerasHub model converted")
6666
hub_model = convert(applications_model)

0 commit comments

Comments
 (0)