Qsingle / Megvision

Some models implemented by megengine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 100.0%