Code Monkey home page Code Monkey logo

cuicp's Introduction

cuicp

CUDA accelerated iterative closest point algorithm.

Environment

Major dependencies:

  • cupy for GPU accelerated linear algebra.
  • cuml for GPU accelerated nearest neighbor.
  • tqdm for progress bar.

Conda

conda create -n cuicp -c rapidsai -c conda-forge -c nvidia  \
    cuml=22.10 python=3.9 cudatoolkit=11.5 cupy=11.3 tqdm

conda activate cuicp

Docker

docker build -t cuicp -f Dockerfile .

docker run --rm -it \
    --shm-size=1g \
    --ulimit memlock=-1 \
    -v $(pwd):/workspace \
    cuicp \
    python ...

Running

python icp.py \
    --source /path/to/source.xyz \
    --target /path/to/target.xyz \
    --output /path/to/output.xyz

For detailed usage, please refer to icp.py.

Example

The example data can be found here. Please download the tar and extract to ./data/cal. Use the script scripts/run_icp.sh to align the example point clouds placed in data/cal and save to data/out. Then visualize the original and aligned point clouds in MeshLab (the original point clouds on the left and the aligned ones on the right). Each iteration takes about 0.28s on NVIDIA RTX3090 (with Intel i9-12900K).

MeshLab visualization

License

MIT license.

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.