Skip to content

Commit d180498

Browse files
james77777778mattdangerw
authored andcommitted
Add ResNetBackbone and ResNetImageClassifier (#1765)
* Add ResNetV1 and ResNetV2 * Address comments
1 parent 91a057e commit d180498

File tree

8 files changed

+902
-0
lines changed

8 files changed

+902
-0
lines changed

keras_nlp/api/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@
203203
)
204204
from keras_nlp.src.models.phi3.phi3_tokenizer import Phi3Tokenizer
205205
from keras_nlp.src.models.preprocessor import Preprocessor
206+
from keras_nlp.src.models.resnet.resnet_backbone import ResNetBackbone
207+
from keras_nlp.src.models.resnet.resnet_image_classifier import (
208+
ResNetImageClassifier,
209+
)
206210
from keras_nlp.src.models.roberta.roberta_backbone import RobertaBackbone
207211
from keras_nlp.src.models.roberta.roberta_masked_lm import RobertaMaskedLM
208212
from keras_nlp.src.models.roberta.roberta_masked_lm_preprocessor import (
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2024 The KerasNLP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.

0 commit comments

Comments
 (0)