Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export video swin APIs #2428

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 9 additions & 0 deletions keras_cv/api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,15 @@
ResNetV2Backbone,
)
from keras_cv.src.models.backbones.vgg16.vgg16_backbone import VGG16Backbone
from keras_cv.src.models.backbones.video_swin.video_swin_aliases import (
VideoSwinBBackbone,
)
from keras_cv.src.models.backbones.video_swin.video_swin_aliases import (
VideoSwinSBackbone,
)
from keras_cv.src.models.backbones.video_swin.video_swin_aliases import (
VideoSwinTBackbone,
)
from keras_cv.src.models.backbones.video_swin.video_swin_backbone import (
VideoSwinBackbone,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import copy

from keras_cv.src.api_export import keras_cv_export
from keras_cv.src.models.backbones.video_swin.video_swin_backbone import (
VideoSwinBackbone,
)
Expand Down Expand Up @@ -42,6 +43,7 @@
""" # noqa: E501


@keras_cv_export("keras_cv.models.VideoSwinTBackbone")
class VideoSwinTBackbone(VideoSwinBackbone):
def __new__(
cls,
Expand Down Expand Up @@ -79,6 +81,7 @@ def presets_with_weights(cls):
return cls.presets


@keras_cv_export("keras_cv.models.VideoSwinSBackbone")
class VideoSwinSBackbone(VideoSwinBackbone):
def __new__(
cls,
Expand Down Expand Up @@ -116,6 +119,7 @@ def presets_with_weights(cls):
return cls.presets


@keras_cv_export("keras_cv.models.VideoSwinBBackbone")
class VideoSwinBBackbone(VideoSwinBackbone):
def __new__(
cls,
Expand Down
Loading