GithubHelp home page GithubHelp logo

smbonilla / endogaussian Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cuhk-aim-group/endogaussian

0.0 0.0 0.0 26.2 MB

EndoGaussian: Gaussian Splatting for Deformable Surgical Scene Reconstruction

License: Other

C++ 4.75% Python 75.19% C 0.26% Cuda 19.49% CMake 0.32%

endogaussian's Introduction

EndoGaussian: Gaussian Splatting for Deformable Surgical Scene Reconstruction

Yifan Liu1*, Chenxin Li1*, Chen Yang2, Yixuan Yuan1✉

1Department of Electronic Engineering, CUHK   2Department of Electrical Engineering, CityU  

* Equal Contributions. Corresponding Author.


introduction

Environmental Setups

Please follow the 3D-GS to install the relative packages.

git clone https://github.com/yifliu3/EndoGaussian.git
cd EndoGaussian
git submodule update --init --recursive
conda create -n EndoGaussian python=3.7 
conda activate EndoGaussian

pip install -r requirements.txt
pip install -e submodules/depth-diff-gaussian-rasterization
pip install -e submodules/simple-knn

In our environment, we use pytorch=1.13.1+cu116.

Data Preparation

EndoNeRF:
The dataset provided in EndoNeRF is used. You can download and process the dataset from their website (https://github.com/med-air/EndoNeRF). We use the two accessible clips including 'pulling_soft_tissues' and 'cutting_tissues_twice'.

SCARED:
The dataset provided in SCARED is used. To obtain a link to the data and code release, sign the challenge rules and email them to [email protected]. You will receive a temporary link to download the data and code. Follow MICCAI_challenge_preprocess to extract data. The resulted file structure is as follows.

├── data
│   | endonerf 
│     ├── pulling
│     ├── cutting 
│   | scared
│     ├── dataset_1
│       ├── keyframe_1
│           ├── data
│       ├── ...
│     ├── dataset_2
|     ├── ...

Training

For training scenes such as pulling_soft_tissues, run

python train.py -s data/endonerf/pulling --port 6017 --expname endonerf/pulling --configs arguments/endonerf/pulling.py 

You can customize your training config through the config files.

Rendering

Run the following script to render the images.

python render.py --model_path output/endonerf/pulling  --skip_train --configs arguments/endonerf/pulling.py

You can use --skip_train, --skip_test, and --skip_video to skip rendering images of training, testing, and video set. By default, all three sets are rendered.

Evaluation

You can just run the following script to evaluate the model.

python metrics.py --model_path output/endonerf/pulling

Contributions

This project is still under development. Please feel free to raise issues or submit pull requests to contribute to our codebase.


Some source code of ours is borrowed from 3DGS4DGS, and EndoNeRF.

Citation

If you find this repository/work helpful in your research, welcome to cite this paper and give a ⭐.

@misc{liu2024endogaussian,
      title={EndoGaussian: Gaussian Splatting for Deformable Surgical Scene Reconstruction}, 
      author={Yifan Liu and Chenxin Li and Chen Yang and Yixuan Yuan},
      year={2024},
      eprint={2401.12561},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

endogaussian's People

Contributors

yifliu3 avatar xggnet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.