Datasets:

Languages:
English
ArXiv:
License:
mattdeitke's picture
Update README.md
f634f76 unverified
|
raw
history blame
1.48 kB

🪐 Objaverse-XL Rendering Script

Blender generated with MidJourney

Scripts for rendering Objaverse-XL with Blender. Rendering is the process of taking pictures of the 3D objects. These images can then be used for training AI models.

🖥️ Setup

  1. Clone the repository and enter the rendering directory:
git clone https://github.com/allenai/objaverse-xl.git && \
  cd objaverse-xl/scripts/rendering
  1. Download Blender:
wget https://download.blender.org/release/Blender3.2/blender-3.2.2-linux-x64.tar.xz && \
  tar -xf blender-3.2.2-linux-x64.tar.xz && \
  rm blender-3.2.2-linux-x64.tar.xz
  1. If you're on a headless Linux server, install Xorg and start it:
sudo apt-get install xserver-xorg -y && \
  sudo python3 start_x_server.py start
  1. Install the Python dependencies. Note that Python >3.8 is required:
cd ../.. && \
  pip install -r requirements.txt && \
  pip install -e . && \
  cd scripts/rendering

📸 Example Usage

After setup, you can render objects using the main.py script:

python3 main.py

USDZ support is experimental. Since Blender does not natively support usdz, we use this Blender addon, but it doesn't work with all types of USDZs. If you have a better solution, PRs are very much welcome 😄!