asklinux / blender-colab

Render Blender 2.8x scenes with Google Colaboratory

Home Page:https://colab.research.google.com/github/ynshung/blender-colab/blob/master/blender_render.ipynb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blender-colab

Open In Colab

This is a Python script that allows you to render Blender 2.8x scene using Google Colaboratory. You can upload the blender files using direct upload, Google Drive or URL while rendered frames can be downloaded directly or through Google Drive. This script provides basic functionality so you may modify the script to your liking to suit your needs. This script is adapted from this gist. Special thanks to donmahallem and the Sheepit Discord community (for discovery of this gist)!

A few notes:

  1. You must own a Google account.
  2. One notebook can only run for maximum time of 12 hours (24 hours for Google Colab Pro) but not guaranteed.
  3. EEVEE rendering is not supported in virtual machine.
  4. This script is not tested fully yet. Expect some errors.
  5. Do note that your access to GPU may be limited or blocked if you render for many hours.
  6. This script is intended for those who have no access to high-end GPU for rendering. Please use responsibly!

FAQ

An error occured!

Check which section of the code failed and identify the error (such as misspelled files or path). If you don't understand the error, try re-running the code with the play button at the side. If it still fails, go to Runtime > Restart and run all to restart the code or try Runtime > Factory reset runtime. If all else fails, open an issue in GitHub with the error log you encountered attached and the details of your setup.

Common errors:

  • MessageError: TypeError: Failed to fetch while downloading: The tab must be opened so that the frames can be downloaded.

Disclaimer

Google Colab is specialized for data centres, neural network etc, not rendering 3D scenes. Because the computing power provided are free, the usage limits, idle timeouts and speed of the rendering may varies. ColabPro is available for those who wanted to have more powerful GPU and longer session for rendering. See the FAQ for more info. In some cases, it might be faster to use a renderfarm such as Sheepit (free) and ConciergeRender (paid w/ trial) which support parallel rendering.

About

Render Blender 2.8x scenes with Google Colaboratory

https://colab.research.google.com/github/ynshung/blender-colab/blob/master/blender_render.ipynb

License:MIT License


Languages

Language:Jupyter Notebook 100.0%