Comments (4)
Hi @bottler , I tried setting up repo from source with these commands
git clone https://github.com/facebookresearch/pytorch3d.git
cd pytorch3d && pip install -e .
But Running setup.py develop for pytorch3d
keeps running to infinite
from pytorch3d.
It may work to build from source. There are no binaries provided, hence the error. And I guess it will be CPU-only.
from pytorch3d.
Same problem. Running setup.py develop for pytorch3d
seems running endlessly
from pytorch3d.
Hi @Sar-thak-3 @yaojin17 , I successfully compiled pytorch3d in a container on arm/v8 and run it in k8s cluster, and I think it also works on host machine. Here is the key steps FYI
FROM jupyter/tensorflow-notebook:aarch64-lab-4.0.3
RUN mkdir -p ~/Downloads
RUN cd ~/Downloads
# https://github.com/conda-forge/miniforge/releases/download/24.3.0-0/Mambaforge-24.3.0-0-Linux-aarch64.sh
COPY Mambaforge-24.3.0-0-Linux-aarch64.sh /root/conda.sh
USER root
RUN chmod +x /root/conda.sh && \
bash /root/conda.sh -b -p /root/conda
RUN /root/conda/bin/conda init
RUN source ~/.bashrc
ENV PATH /root/conda/bin:$PATH
RUN apt install -y vim-tiny
RUN conda create -y -n pytorch3d python=3.10
RUN echo "conda activate pytorch3d" >> ~/.bashrc
RUN CONDA_OVERRIDE_CUDA="12.0" conda install --name pytorch3d --yes pytorch=2.3.1=cuda120_py310h377a36d_200 -c conda-forge -c nvidia
RUN conda install --name pytorch3d --yes -c conda-forge -c fvcore fvcore
RUN /bin/bash -c ". activate pytorch3d && \
pip install --upgrade pip && \
pip install \
scikit-image \
matplotlib \
imageio \
black \
isort \
flake8 \
flake8-bugbear \
flake8-comprehensions"
# download the pytorch3d v0.7.6 source code from repo
COPY pytorch3d /root/pytorch3d/
# download the torchvision 0.18.1 source code from repo
COPY vision-0.18.1/vision-0.18.1 /root/torchvision/
RUN /bin/bash -c ". activate pytorch3d && \
pip install ninja && \
cd /root/torchvision && \
pip install . "
WORKDIR /root/pytorch3d
# https://developer.nvidia.com/cuda-12-0-0-download-archive
COPY cuda_12.0.0_525.60.13_linux_sbsa.run /root/cuda_12.0.0_525.60.aarch64.run
RUN sh /root/cuda_12.0.0_525.60.aarch64.run --toolkit --silent
ENV CUDA_HOME /usr/local/cuda-12.0
RUN /bin/bash -c ". activate pytorch3d && \
cd /root/pytorch3d && \
FORCE_CUDA=1 pip install . "
as you can see Pytorch3d needs both arm version of torch and torchvision, and torchvision needs to be compiled manually. And ninja is also required(to speed up compilation process, as you mentioned the compilation seems infinite). When you finally compile the pytorch3d, make sure using FORCE_CUDA=1 to force compile and install the cuda version of pytorch3d. GLHF!
from pytorch3d.
Related Issues (20)
- Got ERROR: Failed building wheel for pytorch3d HOT 2
- Installation error under LINUX HOT 7
- Encountered a compilation error: the required .o files were not generated. HOT 4
- unable to build from source - `cannot import name 'packaging' from 'pkg_resources'` HOT 6
- latest version of pytorch3d does not support crop_bbox_xywh from CO3Dv2 HOT 3
- ModuleNotFoundError: No module named 'pytorch3d.structures' HOT 1
- Is there a way to install pytorch3d in a virtual environment on Windows without using conda? HOT 1
- Add `max` point reduction for chamfer distance
- I want to paste my own pictures on white cloth with different degrees of curvature. Is it possible? HOT 1
- the normal map is different form blender normal map HOT 3
- How to change background color of the pytorch3d rendering results? HOT 4
- Does pytorch3d work with python3.11? HOT 2
- get_full_projection_transform not functioning properly for batch sizes > 2 HOT 2
- How to save mesh as tetrahedron in pytorch3d? HOT 1
- Does PyTorch3D support AMD Radeon W7900? (gfx1100) HOT 1
- The picture I generated using pytorch3d has a slash in the middle of the picture, and I don't know why? HOT 8
- Some kind of offset in TexturesUV Map, leads to faulty texture on mesh HOT 3
- A valid wheel for the current colab? HOT 1
- Compatibility Issues with PyTorch3D, GCC, and CUDA on Red Hat Linux HOT 10
- Softras to Pytorch3d comparison rendering flow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch3d.