Skip to content

Commit dd8df26

Browse files
sachinprasadhsmattdangerw
authored andcommitted
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 33854c6 commit dd8df26

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
@@ -62,6 +62,12 @@
6262
from keras_nlp.src.models.bloom.bloom_tokenizer import BloomTokenizer
6363
from keras_nlp.src.models.causal_lm import CausalLM
6464
from keras_nlp.src.models.causal_lm_preprocessor import CausalLMPreprocessor
65+
from keras_nlp.src.models.csp_darknet.csp_darknet_backbone import (
66+
CSPDarkNetBackbone,
67+
)
68+
from keras_nlp.src.models.csp_darknet.csp_darknet_image_classifier import (
69+
CSPDarkNetImageClassifier,
70+
)
6571
from keras_nlp.src.models.deberta_v3.deberta_v3_backbone import (
6672
DebertaV3Backbone,
6773
)
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)