⚡ Unofficial TF2/Keras implementation of ConvNeXt. Serializable.
import tensorflow as tf
randx = tf.random.uniform((10, 32, 32, 3))
model = build_model_functional(
name="convnext_tiny",
shape=(32, 32, 3),
num_classes = 100
)
print(model.summary())
model.compile(
optimizer = tf.keras.optimizers.Adam(learning_rate = 0.001),
loss = tf.keras.losses.SparseCategoricalCrossentropy(from_logits = False),
metrics = ['accuracy']
)
print(model(randx)) # (1, 100)- TF2 with converted weights: https://github.com/bamps53/convnext-tf
- https://github.com/dongkyuk/ConvNext-tensorflow
- https://github.com/facebookresearch/ConvNeXt
@Article{liu2021convnet,
author = {Zhuang Liu and Hanzi Mao and Chao-Yuan Wu and Christoph Feichtenhofer and Trevor Darrell and Saining Xie},
title = {A ConvNet for the 2020s},
journal = {arXiv preprint arXiv:2201.03545},
year = {2022},
}