-
Notifications
You must be signed in to change notification settings - Fork 328
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
take over video swin checkpoints #2448
Comments
Hi Innat!! will do |
@innat the verification notebooks are not accessible. can you please double check the permissions?
|
Ignore else, you can only look at here.
Some other variations of this model. (also check this comment)
FYI, the
I see, new API. Let me check.
I have to clean lots of messy code. How about the following two files
|
I will wait for your generated preset files. Also I cannot still access the verification files. |
@divyashreepathihalli Do you have a kaggle id? If so, could you please share? |
@innat what do you mean by Kaggle ID?
|
@divyashreepathihalli Here are the notebooks on kaggle. (currently in private.). I don't like to make these notebook public (as I already did something before with my own code). The following notebooks load the keras-cv.video-swin from its latest release. After the take over process (checking, verifying, saving of presets or weights) is done (by you), I will remove these notebooks from my end. Hope its clear now.
(Note. In number 1 and 2, we load the official video swin model from torchvision (with their API), and in number 3 and 4, we load the official vidoe swin model in raw pytorch code. ) |
Hi Innat!! here is my kaggle id - |
Also here is the process for presets
|
I prefer not to do that coz it will take much time to upload all the weights to kaggle. However, is it possible to test the weight with local file path? Also, if I want to manually load the preset file, what are the loading APIs? For example, to load the !ls video-swin-presets/videoswin_base_kinetics400
- config.json
- metadata.json
- model.weights.h5
def vswin_tiny():
backbone=VideoSwinBackbone(
input_shape=(32, 224, 224, 3),
embed_dim=96,
depths=[2, 2, 6, 2],
num_heads=[3, 6, 12, 24],
include_rescaling=False,
)
keras_model = VideoClassifier(
backbone=backbone,
num_classes=400,
activation=None,
pooling='avg',
)
# option 1
keras_model.load_weights(
'video-swin-presets/videoswin_tiny_kinetics400'
)
# option 2
keras_model.load_presets(
'video-swin-presets/videoswin_tiny_kinetics400'
)
return keras_model |
loading the preset is done using |
This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you. |
This issue was closed because it has been inactive for 28 days. Please reopen if you'd like to work on this further. |
Keras-team
Could you please take over the video swin checkponts and upload it to kaggle in order to make it usable in kaggle platform?
The text was updated successfully, but these errors were encountered: