aiyb1314 / GenPercept

GenPercept: Diffusion Models Trained with Large Data Are Transferable Visual Models

Home Page:https://huggingface.co/spaces/guangkaixu/GenPercept

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GenPercept: Diffusion Models Trained with Large Data Are Transferable Visual Models

Guangkai Xu,   Yongtao Ge,   Mingyu Liu,   Chengxiang Fan,   Kangyang Xie,   Zhiyue Zhao,   Hao Chen,   Chunhua Shen,  

Zhejiang University

πŸ”₯ Fine-tune diffusion models for perception tasks, and inference with only one step! ✈️

image

πŸ“’ News

  • 2024.3.10: Release arXiv v1 paper.
  • 2024.3.15: Release arXiv v2 paper, with supplementary material.
  • 2024.4.6: Release inference code and depth checkpoint weight of GenPercept in the GitHub repo.
  • 2024.4.7: Add HuggingFace App demo.

πŸ–₯️ Dependencies

conda create -n genpercept python=3.10
conda activate genpercept
pip install -r requirements.txt
pip install -e .

πŸš€ Inference

Download the pre-trained depth model depth_v1.zip from BaiduNetDisk (Extract code: z938) or Rec Cloud Disk. Put the package under ./weights/ and unzip it, the checkpoint will be stored under ./weights/depth_v1/.

Then, place images in the ./input/ dictionary, and run the following script. The output depth will be saved in ./output/.

sh scripts/inference_depth.sh

For surface normal estimation, run the following script:

bash scripts/inference_normal.sh

Thanks to our one-step perception paradigm, the inference process runs much faster. (Around 0.4s for each image on an A800 GPU card.)

πŸ“– Recommanded Works

  • Marigold: Repurposing Diffusion-Based Image Generators for Monocular Depth Estimation. arXiv, GitHub.
  • GeoWizard: Unleashing the Diffusion Priors for 3D Geometry Estimation from a Single Image. arXiv, GitHub.
  • FrozenRecon: Pose-free 3D Scene Reconstruction with Frozen Depth Models. arXiv, GitHub.

πŸ… Results in Paper

Depth and Surface Normal

image

Dichotomous Image Segmentation

image

Image Matting

image

Human Pose Estimation

image

🎫 License

For non-commercial use, this code is released under the LICENSE. For commercial use, please contact Chunhua Shen.

πŸŽ“ Citation

@article{xu2024diffusion,
  title={Diffusion Models Trained with Large Data Are Transferable Visual Models},
  author={Xu, Guangkai and Ge, Yongtao and Liu, Mingyu and Fan, Chengxiang and Xie, Kangyang and Zhao, Zhiyue and Chen, Hao and Shen, Chunhua},
  journal={arXiv preprint arXiv:2403.06090},
  year={2024}
}

About

GenPercept: Diffusion Models Trained with Large Data Are Transferable Visual Models

https://huggingface.co/spaces/guangkaixu/GenPercept

License:Creative Commons Zero v1.0 Universal


Languages

Language:Python 99.5%Language:Shell 0.5%