efficientvit

mit-han-labApache-2.0长期未更新

面向高分辨率生成与感知的高效视觉基础模型,通过轻量架构设计降低计算开销,可用于图像分类、分割等任务。

Efficient vision foundation models for high-resolution generation and perception.

暂无版本3,377star259fork同步于 2026-11-10 11:41 UTC

怎么上手

由 README 提炼,执行前请确认
conda create -n efficientvit python=3.10
conda activate efficientvit
pip install -U -r requirements.txt
硬件要求按 README 说明

README 未说明具体显存要求;提到 EfficientViT-SAM 在 A100 GPU 上使用 TensorRT 获得 48.9 倍加速,GazeSAM 可在 NVIDIA RTX 4070 上实时运行

支持 Apple Silicon
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

MIT HAN Lab 的高效视觉基础模型库,涵盖高分辨率生成与感知任务

面向高分辨率生成与感知的高效视觉基础模型,通过轻量架构设计降低计算开销,可用于图像分类、分割等任务。

核心能力

  • DC-AE 实现最高 128 倍空间压缩的自编码器
  • EfficientViT-SAM 用 EfficientViT 替换 SAM 的重型图像编码器
  • 提供分类、分割、SAM、GazeSAM 等多任务预训练模型
  • 支持 TensorRT 部署与模型导出
  • DC-AE 已集成 diffusers 生态

容易踩的坑

代码库已于 2025/09/05 停止维护,后续更新迁移至 DC-Gen 项目;预训练模型需从 HuggingFace 单独下载;TensorRT 加速需额外安装配置 TensorRT 后端

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Efficient Vision Foundation Models for High-Resolution Generation and Perception

    PWC

    News

    • (🔥 New) [2025/09/05] We will no longer maintain this codebase. All future updates and announcements will be made on DC-Gen.
    • (🔥 New) [2025/01/24] We released DC-AE-SANA-1.1: doc.
    • (🔥 New) [2025/01/23] DC-AE and SANA are accepted by ICLR 2025.
    • (🔥 New) [2025/01/14] We released DC-AE+USiT models: model, training. Using the default training settings and sampling strategy, DC-AE+USiT-2B achieves 1.72 FID on ImageNet 512x512, surpassing the SOTA diffusion model EDM2-XXL and SOTA auto-regressive image generative models (MAGVIT-v2 and MAR-L).

    Content

    [ICLR 2025] Deep Compression Autoencoder for Efficient High-Resolution Diffusion Models [paper] [readme] [poster]

    Deep Compression Autoencoder (DC-AE) is a new family of high-spatial compression autoencoders with a spatial compression ratio of up to 128 while maintaining reconstruction quality. It accelerates all latent diffusion models regardless of the diffusion model architecture.

    Demo

    demo

    demo

    [CVPR 2024 eLVM Workshop] EfficientViT-SAM: Accelerated Segment Anything Model Without Accuracy Loss [paper] [online demo] [readme]

    EfficientViT-SAM is a new family of accelerated segment anything models by replacing SAM's heavy image encoder with EfficientViT. It delivers a 48.9x measured TensorRT speedup on A100 GPU over SAM-ViT-H without sacrificing accuracy.

    [ICCV 2023] EfficientViT-Classification [paper] [readme]

    Efficient image classification models with EfficientViT backbones.

    [ICCV 2023] EfficientViT-Segmentation [paper] [readme]

    Efficient semantic segmantation models with EfficientViT backbones.

    demo

    EfficientViT-GazeSAM [readme]

    Gaze-prompted image segmentation models capable of running in real time with TensorRT on an NVIDIA RTX 4070.

    GazeSAM demo

    Getting Started

    conda create -n efficientvit python=3.10
    conda activate efficientvit
    pip install -U -r requirements.txt
    

    Third-Party Implementation/Integration

    Contact

    Han Cai

    Reference

    If EfficientViT or EfficientViT-SAM or DC-AE is useful or relevant to your research, please kindly recognize our contributions by citing our paper:

    @inproceedings{cai2023efficientvit,
      title={Efficientvit: Lightweight multi-scale attention for high-resolution dense prediction},
      author={Cai, Han and Li, Junyan and Hu, Muyan and Gan, Chuang and Han, Song},
      booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
      pages={17302--17313},
      year={2023}
    }
    
    @article{zhang2024efficientvit,
      title={EfficientViT-SAM: Accelerated Segment Anything Model Without Performance Loss},
      author={Zhang, Zhuoyang and Cai, Han and Han, Song},
      journal={arXiv preprint arXiv:2402.05008},
      year={2024}
    }
    
    @article{chen2024deep,
      title={Deep Compression Autoencoder for Efficient High-Resolution Diffusion Models},
      author={Chen, Junyu and Cai, Han and Chen, Junsong and Xie, Enze and Yang, Shang and Tang, Haotian and Li, Muyang and Lu, Yao and Han, Song},
      journal={arXiv preprint arXiv:2410.10733},
      year={2024}
    }