This is a basic program to get familiar with Pytorch3D. I used this 3D model and converted it to an .obj file using an online converter.
-
Download the Anaconda installer for macOS from the Anaconda website.
-
Open Terminal, switch to bash, navigate to the download location, and run the installer:
bash Anaconda3-2024.06-1-MacOSX-x86_64.sh
-
Initialize Anaconda:
source ~/.bash_profile
-
Create a new conda environment:
conda create -n pytorch3d_env python=3.9
-
Activate the environment:
conda activate pytorch3d_env
-
Install PyTorch via Pip: Make sure your Conda environment is activated and install PyTorch using pip.
pip install torch torchvision torchaudio
-
Install PyTorch3D via Pip:
Install the required dependencies and PyTorch3D.
pip install "git+https://github.com/facebookresearch/pytorch3d.git"
-
Then simply "python main.py"!!
You should get something like this: