Code Monkey home page Code Monkey logo

blender-colab's Introduction

blender-colab

Open In Colab

This is a Python script that allows you to render Blender 3.0+ and older version scene using Google Colaboratory. You can upload the blender files using direct upload, Google Drive or URL. 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.

Usage

Upload type

  • direct: Upload your blender file in the next cell.
  • google_drive: The blender file will be downloaded directly from Google Drive. You need to specify the path to the blender/zip file at drive_path.
  • url: Direct link to the blender file in url_blend.
  • gdrive_relative: The Google Drive folder specified at drive_path will be copied directly (as if it's a zipped file).

Download type

  • direct: Output files will be automatically downloaded in your browser. (Probably does not work with multiple files?)
  • google_drive: The output files will be pasted into the specified drive_output_path once rendering is finished.
  • gdrive_relative: The output frames will be automatically rendered into the specified drive_output_path.

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 a 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 them 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 targeted to researchers and students to run AI/ML tasks, data analysis and education, not rendering 3D scenes. Because the computing power provided are free, the usage limits, idle timeouts and speed of the rendering may varies time by time. Colab Pro and Colab Pro+ are available for those who wanted to have more powerful GPU and longer runtimes for rendering. See the FAQ for more info. In some cases, it might be faster to use an online Blender renderfarm.

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.