Skip to content

Commit cba1453

Browse files
authored
Unpin keras-cv (Kaggle#1272)
http://b/290392955
1 parent 9206ba0 commit cba1453

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Dockerfile.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,7 @@ RUN pip install flashtext \
528528
git+https://github.com/Philmod/catalyst.git@fix-fp16#egg=catalyst \
529529
# b/206990323 osmx 1.1.2 requires numpy >= 1.21 which we don't want.
530530
osmnx==1.1.1 \
531-
# b/290392955 version 0.5.1 breaks the test
532-
keras-cv==0.5.0 && \
531+
keras-cv && \
533532
apt-get -y install libspatialindex-dev
534533
RUN pip install pytorch-ignite \
535534
qgrid \

tests/test_kerascv.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ def test_inference(self):
1313
)
1414
image = keras.utils.load_img('/input/tests/data/face.jpg')
1515
image = np.array(image)
16-
keras_cv.visualization.plot_image_gallery(
17-
[image], rows=1, cols=1, value_range=(0, 255), show=True, scale=4
18-
)
1916
predictions = classifier.predict(np.expand_dims(image, axis=0))
2017
top_classes = predictions[0].argsort(axis=-1)
2118
self.assertEqual(1000, len(top_classes))

0 commit comments

Comments
 (0)