@@ -66,10 +66,27 @@ Thank you to all of our wonderful contributors!
6666 <img src =" https://contrib.rocks/image?repo=keras-team/keras-cv " />
6767</a >
6868
69+ ## Pretrained Weights
70+ Many models in KerasCV come with pre-trained weights. With the exception of StableDiffusion,
71+ all of these weights are trained using Keras and KerasCV components and training scripts in this
72+ repository. Models may not be trained with the same parameters or preprocessing pipeline
73+ described in their original papers. Performance metrics for pre-trained weights can be found
74+ in the training history for each task. For example, see ImageNet classification training
75+ history for backbone models [ here] ( examples/training/classification/imagenet/training_history.json ) .
76+ All results are reproducible using the training scripts in this repository. Pre-trained weights
77+ operate on images that have been rescaled using a simple ` 1/255 ` rescaling layer.
78+
79+ ## Custom Ops
80+ Note that in some the 3D Object Detection layers, custom TF ops are used. The
81+ binaries for these ops are not shipped in our PyPi package in order to keep our
82+ wheels pure-Python.
6983
70- ## Installing Custom Ops from Source
84+ If you'd like to use these custom ops, you can install from source using the
85+ instructions below.
86+
87+ ### Installing KerasCV with Custom Ops from Source
7188Installing from source requires the [ Bazel] ( https://bazel.build/ ) build system
72- (version >= 1.0 .0).
89+ (version >= 5.4 .0).
7390
7491```
7592git clone https://github.com/keras-team/keras-cv.git
@@ -78,20 +95,16 @@ cd keras-cv
7895python3 build_deps/configure.py
7996
8097bazel build build_pip_pkg
98+ export BUILD_WITH_CUSTOM_OPS=true
8199bazel-bin/build_pip_pkg wheels
82100
83101pip install wheels/keras_cv-*.whl
84102```
85103
86- ## Pretrained Weights
87- Many models in KerasCV come with pre-trained weights. With the exception of StableDiffusion,
88- all of these weights are trained using Keras and KerasCV components and training scripts in this
89- repository. Models may not be trained with the same parameters or preprocessing pipeline
90- described in their original papers. Performance metrics for pre-trained weights can be found
91- in the training history for each task. For example, see ImageNet classification training
92- history for backbone models [ here] ( examples/training/classification/imagenet/training_history.json ) .
93- All results are reproducible using the training scripts in this repository. Pre-trained weights
94- operate on images that have been rescaled using a simple ` 1/255 ` rescaling layer.
104+ Note that GitHub actions exist to release KerasCV with custom ops, but are
105+ currently disabled. You can use these [ actions] ( https://github.com/keras-team/keras-cv/blob/master/.github/workflows/release.yml )
106+ in your own fork to create wheels for Linux (manylinux2014), MacOS (both x86 and ARM),
107+ and Windows.
95108
96109## Disclaimer
97110
@@ -109,7 +122,7 @@ Here is the BibTeX entry:
109122``` bibtex
110123@misc{wood2022kerascv,
111124 title={KerasCV},
112- author={Wood, Luke and Tan, Zhenyu and Ian, Stenbit and Zhu, Scott and Chollet, Fran\c{c}ois and others},
125+ author={Wood, Luke and Tan, Zhenyu and Stenbit, Ian and Zhu, Scott and Chollet, Fran\c{c}ois and others},
113126 year={2022},
114127 howpublished={\url{https://github.com/keras-team/keras-cv}},
115128}
0 commit comments