Skip to content

anas-rz/focalnet-keras-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Keras 3 translation of FocalNet

Open In Colab

Released by Microsoft in 2022, FocalNet or Focal Modulation Network is an attention-free architecture achieving superior performance than SoTA self-attention (SA) methods across various vision benchmarks. GitHub Paper.

Installation

git clone https://github.com/anas-rz/focalnet-keras-3.git
cd focalnet-keras-3

Usage

from focalnet_keras_core import *
model = focalnet_huge_fl3()

Available Functions:

focalnet_tiny_srf

focalnet_small_srf

focalnet_base_srf

focalnet_tiny_lrf

focalnet_small_lrf

focalnet_base_lrf

focalnet_tiny_iso_16

focalnet_small_iso_16

focalnet_base_iso_16

focalnet_large_fl3

focalnet_large_fl4

focalnet_xlarge_fl3

focalnet_xlarge_fl4

focalnet_huge_fl3

focalnet_huge_fl4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published