Skip to content

Qsingle/Megvision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Megvision

The MegEngine vision of the models we used in our experiments, hope this repository can help with you.

Usage

Sample to import the DPT based on the SAM.

import megengine as mge
from megvision.model.segmentation.dpt import DPT
from megengine import random

model = DPT(real_img_size=1024, arch="sam_vit_b", img_size=1024, checkpoint=None)
model.eval()
x = random.normal(size=(1, 3, 1024, 1024))
out = model(x)
print(out.shape)

You can also see the file iostar_train.py as a sample for training.

Supported Model List

About

Some models implemented by megengine

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages