GithubHelp home page GithubHelp logo

Installation issues about 3d-ml HOT 10 CLOSED

aaronfderybel avatar aaronfderybel commented on August 15, 2024
Installation issues

from 3d-ml.

Comments (10)

CCInc avatar CCInc commented on August 15, 2024 1

Hi @aaronfderybel !

I think this is an OpenPoints issue. I'll try to open a PR shortly for it and let you know.

Installation with pip should be no problem, if it ends up working for you maybe you can add a howto in the docs?

from 3d-ml.

aaronfderybel avatar aaronfderybel commented on August 15, 2024 1

I've managed to make it work on my machine.
Problem was that some of the modules were not installed in virtualenvironment but outside of it in my main python install.

I've adapted the file ./install_openpoints.sh by removing the --user argument.
The chamfer and other modules are visible in pip list now and can be imported

I have two GeForce RTX 2080 Ti, by default one is used.
I'm able to run the basic example now by setting num_workers:12 and batch_size:32
(defaults are 15 workers and batch size of 64, this makes my GPU run out of memory).

Installation with pip should be no problem, if it ends up working for you maybe you can add a howto in the docs?
How would you like me to do this? Add a section in the README file through a pull request?

from 3d-ml.

leo-stan avatar leo-stan commented on August 15, 2024
  1. Have you tried running the test training even with the warnings? If so where does it fail?
  2. Can you tell us which command exactly gives the warning?
  3. Any chance you could try installing using Conda as its the preferred way of installation at this point? Just to make sure that works.

Thanks :)

from 3d-ml.

aaronfderybel avatar aaronfderybel commented on August 15, 2024

1.Have you tried running the test training even with the warnings? If so where does it fail?
running python src/train.py model=cls_pointnet++ data=cls_modelnet2048 gives multiple errors.
I attached the stacktrace stacktrace.txt

2. Can you tell us which command exactly gives the warning?
sudo ./install_openpoints.sh
I receive the warnings and errors above from the openpoint shell script

3. Any chance you could try installing using Conda as its the preferred way of installation at this point? Just to make sure that works.
Currently have some other things on my local device. Installing conda could break some of my other things on there, so I would rather not. I will look into this if there is no easy fix or badly supported through pip.

from 3d-ml.

CCInc avatar CCInc commented on August 15, 2024

@aaronfderybel I was able to reproduce it with the following docker image:

FROM nvidia/cuda:11.6.1-devel-ubuntu20.04

RUN apt-get update && apt-get -y install git wget

# Install miniconda3

WORKDIR /root
ENV MINICONDA3 /root/miniconda3
RUN mkdir -p $MINICONDA3 \
    echo "I'm building for TARGETPLATFORM=${TARGETPLATFORM}" \
    && case ${TARGETPLATFORM} in \
         "linux/arm64")  MINI_ARCH=aarch64  ;; \
         *) MINI_ARCH=x86_64  ;; \
    esac \
    && wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-${MINI_ARCH}.sh -O $MINICONDA3/miniconda.sh \
    && chmod +x $MINICONDA3/miniconda.sh \
    && $MINICONDA3/miniconda.sh -b -u -p $MINICONDA3 \
    && rm -rf $MINICONDA3/miniconda.sh
ENV PATH="/root/miniconda3/bin:${PATH}"

RUN conda init bash \
    && conda install python=3.9

ENV TORCH_CUDA_ARCH_LIST "7.5 8.0 8.6"

#install pytorch with pip
RUN pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu116
#install pytorch geo with pip, ${CUDA} = cu116
RUN pip install pyg-lib torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-1.13.0+cu116.html
RUN pip install torch-geometric

COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

COPY . .
RUN ./install_openpoints.sh
# RUN cd openpoints/cpp/emd && python setup.py install --user

Can you try this and let me know if it works? guochengqian/openpoints#9

from 3d-ml.

aaronfderybel avatar aaronfderybel commented on August 15, 2024

Hello @CCInc ,

Installation with pip should be no problem, if it ends up working for you maybe you can add a howto in the docs?
=> No problem once it works on my machine I can provide this.

I've made the adaptations to openpoints according to guochengqian/openpoints#9
This solved the error during installation with ./install_openpoints.sh

However when i run the basic example:
bash python src/train.py model=cls_pointnet++ data=cls_modelnet2048
I receive a bunch of import errors according to openpoints related modules

AttributeError: module 'src.models.classification' has no attribute 'openpoints_module'
ModuleNotFoundError: No module named 'chamfer'
Are you sure that 'openpoints_module' is importable from module 'src.models.classification'?

I'm working using a virtual environment and python 3.9.
Maybe I should add some extra things in my PATH variable to be able to load these modules? Or what do you think the problem is here?

from 3d-ml.

leo-stan avatar leo-stan commented on August 15, 2024

Yeah that's the typical error we get when openpoints install is not successful.

  1. Can you run import src.models.classification.openpoints_module from within your virtual env and tell us if that works?
  2. What model of GPU are you using?

from 3d-ml.

CCInc avatar CCInc commented on August 15, 2024

Great, glad to hear it's working!

If you can open a PR that would be great. Maybe title the existing installation procedure with "Conda Installation (recommended)" and then add another subsection with "Pip Installation" and adapt the steps as necessary.

Feel free to also include the fixes you had to do to the install_openpoints.sh file in there as well. Thanks!

from 3d-ml.

aaronfderybel avatar aaronfderybel commented on August 15, 2024

Hi @CCInc ,

I see that the version of the submodule of openpoints in the main branch does not contain the fix from guochengqian/openpoints#9
Does this fix need to be included in the openpoints main branch or does it break other things?

from 3d-ml.

CCInc avatar CCInc commented on August 15, 2024

Hi @aaronfderybel, I updated it in #40 , should be all good now!

from 3d-ml.

Related Issues (20)

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.