Skip to content

leanderme/ConvNeXt-Tensorflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

ConvNeXt-Tensorflow

⚡ 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)

Thanks

Reference

@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},
}

About

Unofficial Serializable/Functional TF2 Keras Implementation of ConvNeXt (A ConvNet for the 2020s)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors