- 
                Notifications
    
You must be signed in to change notification settings  - Fork 333
 
Description
tl;dr
- We are consolidating KerasNLP and KerasCV into a new KerasHub package.
 - Users will find KerasCV functionalities and new features incorporated into the KerasHub package moving forward.
 keras-nlpGitHub repository has been renamed tokeras-hub.- All existing usages will continue to work!
- You can keep running 
pip install keras-nlp&import keras_nlp—nothing will break. Same withkeras_cv. 
 - You can keep running 
 
What's happening
Popular pretrained models are frequently becoming multi-modal. In the text domain, chat LLMs are adding support for image and audio inputs and outputs. In the vision domain, using text encoders is common for a wide range of tasks from image segmentation to image generation.
We do not believe any particular division of pretrained models will help the Keras ecosystem going forward. Distinctions between model architectures (transformers vs convnets vs diffision models) become fuzzy, as do divisions between modalities.
By consolidating to a single library that focuses on easy-to-use, pretrained architectures and weights, we can better deliver a set of features that apply to all pretrained models—easy model publishing and sharing, PEFT and quantization support, scaled up muli-host training.
To that end, we are consolidating KerasNLP and KerasCV into a KerasHub package.
The plan
We will begin porting backbones, segmentation tasks, and object detection tasks to keras_hub on an ongoing basis. Most of the utility functions will be moved to Keras Core.
You can expect some changes to how CV models are used in keras_hub, as we strive for a consistent user experience across all modalities.
Many existing CV models have already been made available in keras_hub along with their presets.
keras-nlphas been renamed tokeras-hub. Library symbols will be renamed fromkeras_nlptokeras_hub.- We will keep a 
keras_nlppackage with all the old imports. This change will be fully backward compatible. - To move from 
keras_nlptokeras_hub, you should be able to simply find and replace all instances ofkeras_nlpwithkeras_hubin code. - Any new features or bug reports for models that are made available on 
keras_hubcan be created directly inkeras_hub. Existing issues related to models that are now available onkeras_hubwill be moved to thekeras_hubrepository. 
When is this happening
The repository is now a preview for the upcoming KerasHub release, but we have not yet made an official release of the keras-hub package. If you would like to try things out as we build, you can do so by trying our nightly package: pip install keras-hub-nightly.
We are tentatively aiming for a end October release of KerasHub.
Feedback and help
We would appreciate any feedback from the community on this! Please feel free to use this issue to send us thoughts.
We have a number of issues related to the port with the contributions welcome tag.