This repository was archived by the owner on Mar 10, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 327
[DeepVision Port] SegFormer and Mix-Transformers #1946
Merged
Merged
Changes from 9 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
dc41892
initial dump
DavidLandup0 e5677e6
add all basic layers, port roughly to keras core ops
DavidLandup0 7bd1056
updated .gitignore
DavidLandup0 03470df
segformer head and formatting
DavidLandup0 cb1c702
cleanup
DavidLandup0 22f8fdf
remove tf call
DavidLandup0 5c9803a
remove tf
DavidLandup0 314dc6b
migrating to more keras ops
DavidLandup0 7a0151b
cleanups and fixes
DavidLandup0 44f01af
fix reshaping
DavidLandup0 eb5b5ae
comments
DavidLandup0 ea0239f
from presets api, keras.ops -> ops
DavidLandup0 b6128a5
embed_dims -> embedding_dims
DavidLandup0 8322109
addressing some PR comments
DavidLandup0 75bb4a2
docstrings, argument update
DavidLandup0 97daf7c
depths arg
DavidLandup0 5f9dc0c
sync
DavidLandup0 efbbd49
compute output shapes
DavidLandup0 d3b43c6
segformer progress
DavidLandup0 dab4e74
head
DavidLandup0 1dba059
softmax
DavidLandup0 bdc3687
remove softmax
DavidLandup0 ddfa315
undo compute_output_shapes()
DavidLandup0 5a091b6
efficientmultiheadattention -> segformermultiheadattention
DavidLandup0 4e9df16
docstrings
DavidLandup0 278875c
softmax output
DavidLandup0 884c376
Merge branch 'master' into segformer_tf
DavidLandup0 6618a65
segformer presets
DavidLandup0 e1fbdb0
Merge branch 'segformer_tf' of https://github.com/DavidLandup0/keras-…
DavidLandup0 00ecd92
updating segformer presets
DavidLandup0 97d9d4a
segformer presets
DavidLandup0 c10963f
import aliases
DavidLandup0 f882b3e
Merge branch 'master' into segformer_tf
DavidLandup0 ab10136
refactoring
DavidLandup0 094189e
pr comments
DavidLandup0 a4df0a6
pr comments
DavidLandup0 e22a15e
add aliases
DavidLandup0 5d63d18
aliases ot init
DavidLandup0 03a177f
refactor fix
DavidLandup0 d1cdd5d
import keras_cv_export
DavidLandup0 ff32d63
fix presets/aliases and add copyright
DavidLandup0 5f3fc22
linter warnings
DavidLandup0 c6b454f
linter errors
DavidLandup0 5ac7f77
consistency in presets
DavidLandup0 b2a76ce
return config
DavidLandup0 0ad5879
fix serialization
DavidLandup0 eea5e3c
Some cleanup + more tests
ianstenbit 8e62cf6
Fix DropPath layer (need to update tests + add shim for tf.keras
ianstenbit b9efeb1
Finish DropPath layer
ianstenbit bd5a99f
Use static shape in backbone
ianstenbit 3d29b0a
Formatting
ianstenbit 4e2c4e8
Switch back to ops.shape
ianstenbit b32e0cf
documentation
DavidLandup0 743a3bb
documentation
DavidLandup0 c640fc9
remove default num classes
DavidLandup0 f1b5ffa
fix docs
DavidLandup0 e32704b
Merge branch 'master' into segformer_tf
ianstenbit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Copyright 2023 The KerasCV 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. | ||
|
|
||
| from keras_cv.backend.config import multi_backend | ||
|
|
||
| if multi_backend(): | ||
| from keras_core.random import * # noqa: F403, F401 | ||
| else: | ||
| from keras_core.src.backend.tensorflow.random import * # noqa: F403, F401 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.