Skip to content
Closed
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a089a8b
Add VGG16 backbone (#1737)
divyashreepathihalli Aug 8, 2024
73b7bad
Add `ResNetBackbone` and `ResNetImageClassifier` (#1765)
james77777778 Aug 12, 2024
26afc7e
Add CSP DarkNet backbone and classifier (#1774)
sachinprasadhs Aug 15, 2024
00ab4d5
Add `FeaturePyramidBackbone` and port weights from `timm` for `ResNet…
james77777778 Aug 15, 2024
9860756
Add DenseNet (#1775)
sachinprasadhs Aug 16, 2024
ececd14
Merge remote-tracking branch 'upstream/master' into keras-hub
divyashreepathihalli Aug 16, 2024
fd6f977
Add ViTDetBackbone (#1776)
divyashreepathihalli Aug 20, 2024
fc485d6
Add Mix transformer (#1780)
sachinprasadhs Aug 20, 2024
2797851
update input_image_shape -> image_shape (#1785)
divyashreepathihalli Aug 21, 2024
18f8880
Create __init__.py (#1788)
sachinprasadhs Aug 22, 2024
2ee893c
Hack package build script to rename to keras-hub (#1793)
mattdangerw Aug 26, 2024
fdf6b6b
Add CLIP and T5XXL for StableDiffusionV3 (#1790)
james77777778 Aug 26, 2024
18dddf4
Add DeepLabV3Plus segmentation
sachinprasadhs Aug 26, 2024
744b233
init file
sachinprasadhs Aug 26, 2024
98c0811
api gen
sachinprasadhs Aug 26, 2024
b40617c
Add Segmentation base class
sachinprasadhs Aug 26, 2024
7470b84
format fix
sachinprasadhs Aug 27, 2024
68a5a62
add dependency package
sachinprasadhs Aug 27, 2024
8473170
nit
sachinprasadhs Aug 28, 2024
beae2f4
Add Bounding Box Utils (#1791)
sineeli Aug 28, 2024
9289ab7
mobilenet_v3 added in keras-nlp (#1782)
ushareng Aug 28, 2024
09f470f
Pkgoogle/efficient net migration (#1778)
pkgoogle Aug 28, 2024
be8888d
Add the ResNet_vd backbone (#1766)
gowthamkpr Aug 28, 2024
536474a
Add `VAEImageDecoder` for StableDiffusionV3 (#1796)
james77777778 Aug 28, 2024
0fbd84b
Replace `Backbone` with `keras.Model` in `CLIPTextEncoder` and `T5XXL…
james77777778 Aug 28, 2024
9143468
Add pyramid output for densenet, cspDarknet (#1801)
sachinprasadhs Sep 3, 2024
791d7f6
Add `MMDiT` for StableDiffusionV3 (#1806)
james77777778 Sep 4, 2024
339669f
Add remaining bbox utils (#1804)
sineeli Sep 4, 2024
0a978d2
Merge remote-tracking branch 'upstream/keras-hub' into segmentation
sachinprasadhs Sep 4, 2024
f31ad9c
Add Deeplabv3 and v3plus in the same backbone and segmenter
sachinprasadhs Sep 17, 2024
2d82550
Merge 'upstream/keras-hub' into segmentation
sachinprasadhs Sep 17, 2024
fc1a3a5
fix imports
sachinprasadhs Sep 17, 2024
c172031
nit
sachinprasadhs Sep 17, 2024
3b6c045
testcase changes
sachinprasadhs Sep 17, 2024
704d119
Segmeter >> ImageSegmenter
sachinprasadhs Sep 17, 2024
64050d5
resolve conflict
sachinprasadhs Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions keras_nlp/api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
since your modifications would be overwritten.
"""

from keras_nlp.api.models import segmentation
from keras_nlp.src.models.albert.albert_backbone import AlbertBackbone
from keras_nlp.src.models.albert.albert_classifier import AlbertClassifier
from keras_nlp.src.models.albert.albert_masked_lm import AlbertMaskedLM
Expand Down Expand Up @@ -50,6 +51,12 @@
from keras_nlp.src.models.bloom.bloom_tokenizer import BloomTokenizer
from keras_nlp.src.models.causal_lm import CausalLM
from keras_nlp.src.models.classifier import Classifier
from keras_nlp.src.models.csp_darknet.csp_darknet_backbone import (
CSPDarkNetBackbone,
)
from keras_nlp.src.models.csp_darknet.csp_darknet_image_classifier import (
CSPDarkNetImageClassifier,
)
from keras_nlp.src.models.deberta_v3.deberta_v3_backbone import (
DebertaV3Backbone,
)
Expand All @@ -68,6 +75,13 @@
from keras_nlp.src.models.deberta_v3.deberta_v3_tokenizer import (
DebertaV3Tokenizer,
)
from keras_nlp.src.models.deeplab_v3_plus.deeplab_v3_plus_segmenter import (
DeepLabV3Plus,
)
from keras_nlp.src.models.densenet.densenet_backbone import DenseNetBackbone
from keras_nlp.src.models.densenet.densenet_image_classifier import (
DenseNetImageClassifier,
)
from keras_nlp.src.models.distil_bert.distil_bert_backbone import (
DistilBertBackbone,
)
Expand Down Expand Up @@ -106,6 +120,7 @@
)
from keras_nlp.src.models.falcon.falcon_preprocessor import FalconPreprocessor
from keras_nlp.src.models.falcon.falcon_tokenizer import FalconTokenizer
from keras_nlp.src.models.feature_pyramid_backbone import FeaturePyramidBackbone
from keras_nlp.src.models.gemma.gemma_backbone import GemmaBackbone
from keras_nlp.src.models.gemma.gemma_causal_lm import GemmaCausalLM
from keras_nlp.src.models.gemma.gemma_causal_lm_preprocessor import (
Expand All @@ -129,6 +144,7 @@
GPTNeoXPreprocessor,
)
from keras_nlp.src.models.gpt_neo_x.gpt_neo_x_tokenizer import GPTNeoXTokenizer
from keras_nlp.src.models.image_classifier import ImageClassifier
from keras_nlp.src.models.llama3.llama3_backbone import Llama3Backbone
from keras_nlp.src.models.llama3.llama3_causal_lm import Llama3CausalLM
from keras_nlp.src.models.llama3.llama3_causal_lm_preprocessor import (
Expand All @@ -153,6 +169,12 @@
MistralPreprocessor,
)
from keras_nlp.src.models.mistral.mistral_tokenizer import MistralTokenizer
from keras_nlp.src.models.mix_transformer.mix_transformer_backbone import (
MiTBackbone,
)
from keras_nlp.src.models.mix_transformer.mix_transformer_classifier import (
MiTImageClassifier,
)
from keras_nlp.src.models.opt.opt_backbone import OPTBackbone
from keras_nlp.src.models.opt.opt_causal_lm import OPTCausalLM
from keras_nlp.src.models.opt.opt_causal_lm_preprocessor import (
Expand Down Expand Up @@ -180,6 +202,10 @@
from keras_nlp.src.models.phi3.phi3_preprocessor import Phi3Preprocessor
from keras_nlp.src.models.phi3.phi3_tokenizer import Phi3Tokenizer
from keras_nlp.src.models.preprocessor import Preprocessor
from keras_nlp.src.models.resnet.resnet_backbone import ResNetBackbone
from keras_nlp.src.models.resnet.resnet_image_classifier import (
ResNetImageClassifier,
)
from keras_nlp.src.models.roberta.roberta_backbone import RobertaBackbone
from keras_nlp.src.models.roberta.roberta_classifier import RobertaClassifier
from keras_nlp.src.models.roberta.roberta_masked_lm import RobertaMaskedLM
Expand All @@ -190,10 +216,14 @@
RobertaPreprocessor,
)
from keras_nlp.src.models.roberta.roberta_tokenizer import RobertaTokenizer
from keras_nlp.src.models.segmentation import Segmentation
from keras_nlp.src.models.seq_2_seq_lm import Seq2SeqLM
from keras_nlp.src.models.t5.t5_backbone import T5Backbone
from keras_nlp.src.models.t5.t5_tokenizer import T5Tokenizer
from keras_nlp.src.models.task import Task
from keras_nlp.src.models.vgg.vgg_backbone import VGGBackbone
from keras_nlp.src.models.vgg.vgg_image_classifier import VGGImageClassifier
from keras_nlp.src.models.vit_det.vit_det_backbone import ViTDetBackbone
from keras_nlp.src.models.whisper.whisper_audio_feature_extractor import (
WhisperAudioFeatureExtractor,
)
Expand Down
22 changes: 22 additions & 0 deletions keras_nlp/api/models/segmentation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2024 The KerasNLP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""DO NOT EDIT.

This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""

from keras_nlp.src.models.deeplab_v3_plus.deeplab_v3_plus_segmenter import (
DeepLabV3Plus,
)
3 changes: 3 additions & 0 deletions keras_nlp/src/models/backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from keras_nlp.src.utils.preset_utils import save_metadata
from keras_nlp.src.utils.preset_utils import save_serialized_object
from keras_nlp.src.utils.python_utils import classproperty
from keras_nlp.src.utils.timm.convert import load_timm_backbone
from keras_nlp.src.utils.transformers.convert import load_transformers_backbone


Expand Down Expand Up @@ -204,6 +205,8 @@ class like `keras_nlp.models.Backbone.from_preset()`, or from

if format == "transformers":
return load_transformers_backbone(cls, preset, load_weights)
elif format == "timm":
return load_timm_backbone(cls, preset, load_weights, **kwargs)

preset_cls = check_config_class(preset)
if not issubclass(preset_cls, cls):
Expand Down
13 changes: 13 additions & 0 deletions keras_nlp/src/models/csp_darknet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2024 The KerasNLP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Loading