• Stars
    star
    268
  • Rank 153,144 (Top 4 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 2 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Official MegEngine implementation of RepLKNet

RepLKNet (CVPR 2022)

This is the official MegEngine implementation of RepLKNet, from the following CVPR-2022 paper:

Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNs.

The paper is released on arXiv: https://arxiv.org/abs/2203.06717.

If you find the paper or this repository helpful, please consider citing

    @article{replknet,
    title={Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNs},
    author={Ding, Xiaohan and Zhang, Xiangyu and Zhou, Yizhuang and Han, Jungong and Ding, Guiguang and Sun, Jian},
    journal={arXiv preprint arXiv:2203.06717},
    year={2022}
    }

Official PyTorch implementation

Our official PyTorch repository https://github.com/DingXiaoH/RepLKNet-pytorch contains

  1. All of the pretrained weights and ImageNet-1K weights.
  2. All of the Cityscapes/ADE20K/COCO weights and code.
  3. An example of using our efficient conv implementation with PyTorch.
  4. Training script and reproducible commands.
  5. A script to visualize the Effective Receptive Field and instructions on obtaining the shape bias.

Other implementations

framework link
Tensorflow https://github.com/shkarupa-alex/tfreplknet
...

More implementations are welcomed.

Catalog

  • Model code
  • MegEngine pretrained models
  • MegEngine training code
  • MegEngine downstream models
  • MegEngine downstream code

Results and Pre-trained Models

ImageNet-1K Models

name resolution acc #params FLOPs download
RepLKNet-31B 224x224 83.58 79M 15.3G 0de394

ImageNet-22K Models

name resolution acc #params FLOPs 22K model 1K model

MegData-73M Models

name resolution acc@1 #params FLOPs MegData-73M model 1K model

Installation of MegEngine

pip3 install megengine -f https://megengine.org.cn/whl/mge.html --user

For more details, please check the HomePage.

Installation of BaseCls

BaseCls is an image classification framework built upon MegEngine. We ultilize BaseCls for ImageNet pretraining and finetuning.

pip3 install basecls --user

Training and evaluation are configured through file. All default configurations are listed here.

Evaluation

./main_imagenet_test.py -f configs/replknet31_base_224_pt1k.py -w [weights] batch_size 64 data.val_path /path/to/imagenet/val

Training

./main_imagenet_train.py -f configs/replknet31_base_224_pt1k.py data.train_path /path/to/imagenet/train data.val_path /path/to/imagenet/val

Benchmark large depth-wise kernels

We can compare the kernel speed of MegEngine against PyTorch. A minimum version of megengine 1.8.2 is required for optimized large depth-wise convolutions.

./main_benchmark.py

License

This project is released under the MIT license. Please see the LICENSE file for more information.

More Repositories

1

MegEngine

MegEngine 是一个快速、可拓展、易于使用且支持自动求导的深度学习框架
C++
4,758
star
2

InferLLM

a lightweight LLM model inference framework
C++
670
star
3

MegCC

MegCC是一个运行时超轻量,高效,移植简单的深度学习模型编译器
C++
473
star
4

MegSpot

MegSpot是一款高效、专业、跨平台的图片&视频对比应用
Vue
459
star
5

MegFlow

Efficient ML solution for long-tailed demands.
Rust
402
star
6

Models

采用MegEngine实现的各种主流深度学习模型
Python
303
star
7

MegPeak

C++
247
star
8

PMRID

ECCV2020 - Practical Deep Raw Image Denoising on Mobile Devices
Python
199
star
9

mperf

mperf是一个面向移动/嵌入式平台的算子性能调优工具箱
C++
169
star
10

NBNet

NBNet: Noise Basis Learning for Image Denoising with Subspace Projection
Python
148
star
11

YOLOX

MegEngine implementation of YOLOX
Python
106
star
12

Hub

基于旷视研究院领先的深度学习算法,提供满足多业务场景的预训练模型
Python
90
star
13

mgeconvert

MegEngine到其他框架的转换器
Python
67
star
14

ICD

This is the official implementation of the paper "Instance-conditional Knowledge Distillation for Object Detection", based on MegEngine and Pytorch.
Python
57
star
15

MegRay

A communication library for deep learning
C++
48
star
16

GyroFlow

The official MegEngine implementation of the ICCV 2021 paper: GyroFlow: Gyroscope-Guided Unsupervised Optical Flow Learning
Python
44
star
17

Docs

MegEngine Documentations
Python
44
star
18

Documentation

MegEngine Official Documentation
Python
39
star
19

Resource

Jupyter Notebook
32
star
20

OMNet

OMNet: Learning Overlapping Mask for Partial-to-Partial Point Cloud Registration, ICCV 2021, MegEngine implementation.
Python
32
star
21

examples

A set of examples around MegEngine
Python
29
star
22

ECCV2022-RIFE

Official MegEngine Implementation of Real-Time Intermediate Flow Estimation for Video Frame Interpolation
Python
29
star
23

FINet

This is the official MegEngine implementation of FINet: Dual Branches Feature Interaction for Partial-to-Partial Point Cloud Registration, AAAI 2022
Python
20
star
24

MegDiffusion

MegEngine implementation of Diffusion Models.
Python
16
star
25

awesome-megengine

Awesome Resources about MegEngine
15
star
26

cutlass-bak

modified cutlass
C++
14
star
27

End-to-end-ASR-Transformer

An end to end ASR Transformer model training repo
Python
13
star
28

swin-transformer

Swin-Transformer implementation in MegEngine. This is a showcase for training on GPU with less memory by leveraging MegEngine DTR technique.
Python
12
star
29

MegCat

A Deep Learning Project about cats.
11
star
30

NeRF

NeRF implementation in MegEngine
Python
9
star
31

Inference-Demo

推理样例
C++
8
star
32

megenginelite-rs

Rust
7
star
33

MegCookbook

以《解析深度学习——卷积神经网络原理与视觉实践》一书内容为脉络,提供MegEngine具体代码实现示例和项目案例
7
star
34

cheat_sheet_for_pytorch_immigrant

一份给从 PyTorch 迁移过来的用户的小抄
6
star
35

MegEngine-DMVFN

Python
6
star
36

MegEngine-SAM

Python
5
star
37

invis

invisible megengine API
Python
4
star
38

midout

Reduce binary size by removing code blocks
C++
4
star
39

MegRL

A MegEngine implementation of 6 RL algorithms
Python
3
star
40

MegEngine-Benchmark

Python
3
star
41

torch2mge

Python
2
star
42

Transfer-Learning-Library

Transfer Learning Library for Domain Adaptation, Task Adaptation, and Domain Generalization
Python
2
star
43

xopr

Experimental Operator Library for MegEngine
Python
2
star
44

mperf-libpfm4

forked from https://sourceforge.net/p/perfmon2/libpfm4/ci/master/tree/
C
1
star