Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backend] Integrate Paddle to ml module #7151

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Conversation

Woodman3
Copy link

Type

  • Bug fix (non-breaking change which fixes an issue): Fixes #
  • New feature (non-breaking change which adds functionality). Resolves #
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) Resolves #

Motivation and Context

Checklist:

  • I have run python util/check_style.py --apply to apply Open3D code style
    to my code.
  • This PR changes Open3D behavior or adds new functionality.
    • Both C++ (Doxygen) and Python (Sphinx / Google style) documentation is
      updated accordingly.
    • I have added or updated C++ and / or Python unit tests OR included test
      results
      (e.g. screenshots or numbers) here.
  • I will follow up and update the code if CI fails.
  • For fork PRs, I have selected Allow edits from maintainers.

Description

This PR is the part I of integration Paddle to ml module.

More details: #7027

We don't integrate Paddle unit test to workflow currently (this will be implement at part II). So we provide a method to build from source to reproduce our works.

Environment

image:registry.baidubce.com/paddlepaddle/paddle:3.0.0b1-gpu-cuda11.8-cudnn8.6-trt8.5

NOTE: we not verify other environment currently.

How to build

  1. update cmake
wget -nc https://paddle-org.bj.bcebos.com/paddlescience/cmake-3.23.0-linux-x86_64.tar.gz
tar -zxvf cmake-3.23.0-linux-x86_64.tar.gz
rm -f cmake-3.23.0-linux-x86_64.tar.gz
PATH=$PWD/cmake-3.23.0-linux-x86_64/bin:$PATH
  1. Install dependencies
util/install_deps_ubuntu.sh
pip install yapf==0.30.0
  1. Install nightly-build paddlepaddle-gpu
pip uninstall paddlepaddle-gpu
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu118/
  1. Config
mkdir build
cd build
cmake  -DBUILD_CUDA_MODULE=ON \
             -DBUILD_PADDLE_OPS=ON  \
             -DBUNDLE_OPEN3D_ML=OFF \
             ..
  1. Build
make -j8
  1. Install
make install-pip-package
  1. Verify
python -c "import open3d.ml.paddle"
···

SecretXV and others added 18 commits November 5, 2024 11:48
Signed-off-by: SecretXV <cfreeze@163.com>
* [Feat] Integrate Paddle to ml module

Signed-off-by: SecretXV <cfreeze@163.com>

* CI retrigger

Signed-off-by: SecretXV <cfreeze@163.com>

---------

Signed-off-by: SecretXV <cfreeze@163.com>
Signed-off-by: SecretXV <cfreeze@163.com>
Signed-off-by: SecretXV <cfreeze@163.com>
* [Feat]  Add all misc operators

* add comment to cpp/open3d/ml/paddle/misc/VoxelizeOpKernel.cu

* [CodeStyle] device to place

---------

Signed-off-by: Woodman3 <1025760745@qq.com>
Signed-off-by: RDIO <35186529+Woodman3@users.noreply.github.com>
Co-authored-by: SecretXV <145354053+SecretXV@users.noreply.github.com>
* add pointnet op

* [Fix] Delete scripts directory

---------

Signed-off-by: Woodman3 <1025760745@qq.com>
Signed-off-by: RDIO <35186529+Woodman3@users.noreply.github.com>
…org#6)

* [Feat] add conv op

* [Doc] add comment

* [fix] add contigous(not compile)

---------

Signed-off-by: Woodman3 <1025760745@qq.com>
* [Feat] add sconv_op

* [Fix] include sstream

* [doc] add comment

---------

Signed-off-by: Woodman3 <1025760745@qq.com>
* [doc] add rst doc

* [doc] add install commend

* [doc] update install guide

* [doc] add doc generate code

* [doc] delete verify

* [fix] add requirment as upstream

* [doc] make install guide as reference

---------

Signed-off-by: Woodman3 <1025760745@qq.com>
* [CI] support paddle ci

* fix

* fix
* [Doc] fix docs

* fix

---------

Signed-off-by: SecretXV <cfreeze@163.com>
Signed-off-by: SecretXV <cfreeze@163.com>
Co-authored-by: SecretXV <cfreeze@163.com>
Copy link

update-docs bot commented Jan 28, 2025

Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes.

Copy link
Contributor

@BeingGod BeingGod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some questions. Please take a look.

util/run_python_unittest.sh Outdated Show resolved Hide resolved
docs/_static/paddle_logo.png Outdated Show resolved Hide resolved
docker/README.md Outdated Show resolved Hide resolved
cpp/open3d/visualization/visualizer/O3DVisualizer.cpp Outdated Show resolved Hide resolved
cpp/open3d/visualization/visualizer/GuiVisualizer.cpp Outdated Show resolved Hide resolved
python/LICENSE.txt Outdated Show resolved Hide resolved
python/js/lib/web_visualizer.js Outdated Show resolved Hide resolved
LICENSE Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the merge conflict of this file has not been resolved correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants