Skip to content

Commit 26afc7e

Browse files
Add CSP DarkNet backbone and classifier (#1774)
* Add CSP DarkNet * Add CSP DarkNet * snake_case function names * change use_depthwise to block_type
1 parent 73b7bad commit 26afc7e

File tree

6 files changed

+677
-0
lines changed

6 files changed

+677
-0
lines changed

keras_nlp/api/models/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
from keras_nlp.src.models.bloom.bloom_tokenizer import BloomTokenizer
5151
from keras_nlp.src.models.causal_lm import CausalLM
5252
from keras_nlp.src.models.classifier import Classifier
53+
from keras_nlp.src.models.csp_darknet.csp_darknet_backbone import (
54+
CSPDarkNetBackbone,
55+
)
56+
from keras_nlp.src.models.csp_darknet.csp_darknet_image_classifier import (
57+
CSPDarkNetImageClassifier,
58+
)
5359
from keras_nlp.src.models.deberta_v3.deberta_v3_backbone import (
5460
DebertaV3Backbone,
5561
)
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)