drmichaeldouglass / blendergooglegpu Goto Github PK
View Code? Open in Web Editor NEWA script to run on the command line of Google Colab to render Blender files using GPU
License: MIT License
A script to run on the command line of Google Colab to render Blender files using GPU
License: MIT License
Hello,
i just want inform you the " BlenderColab.ipynb" it was working perfectly good untill now,
you get a CUDA ERROR and
Found no Cycles device of the specified type
Any idea how to fix ?
This version don't require a authentication with google drive storage. It saves in the colab running section. The user just need to upload the .blend file into section.
This code was modified to render only one frame. But its almost identical to the video version.
Here is the code
#Other Versions are here: https://download.blender.org/release/
#=====================================
!wget https://download.blender.org/release/Blender2.93/blender-2.93.5-linux-x64.tar.xz
!tar xf blender-2.93.5-linux-x64.tar.xz
import os
os.environ["LD_PRELOAD"] = ""
#Deletes wrong Version of libtcmalloc-minimal4
!apt remove libtcmalloc-minimal4
#Installs correct version of libtcmalloc-minimal4
!apt install libtcmalloc-minimal4
#Adds this library to the user environment
os.environ["LD_PRELOAD"] = "/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0"
filename = 'render.blend'
#Render Single Frame: Change -f 1 to -f 100 to render frame 100 for example
#===========================================================================
#!./blender-2.93.5-linux-x64/blender -b $filename -noaudio -E 'CYCLES' --debug-all -o "/content/render" -f 1 -F 'PNG' -- --cycles-device CUDA
!./blender-2.93.5-linux-x64/blender -b $filename -noaudio -E 'CYCLES' -o "/content/render" -f 100 -F 'PNG' -- --cycles-device CUDA
Switching to fully guarded memory allocator.
Blender 3.1.0 (hash c77597cd0e15 built 2022-03-09 00:34:48)
graph_id_tag_update: id=SCScene flags=LEGACY_0 source=USER_EDIT
graph_id_tag_update: id=GRScene Collection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRCollection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GROVERRIDE_RESYNC_LEFTOVERS flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRScene Collection flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRScene Collection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRCollection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GROVERRIDE_RESYNC_LEFTOVERS flags=COPY_ON_WRITE source=USER_EDIT
DEG_relations_tag_update: Tagging relations for update.
DEG_relations_tag_update: Tagging relations for update.
graph_id_tag_update: id=GRScene Collection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRCollection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GROVERRIDE_RESYNC_LEFTOVERS flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRScene Collection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRCollection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GROVERRIDE_RESYNC_LEFTOVERS flags=COPY_ON_WRITE source=USER_EDIT
DEG_relations_tag_update: Tagging relations for update.
ED_screen_refresh: set screen
time bl_operators 0.0221
time bl_ui 0.0730
time keyingsets_builtins 0.0010
time nodeitems_builtins 0.0073
bl_app_template_utils.reset('')
addon_utils.enable io_anim_bvh
addon_utils.enable io_curve_svg
addon_utils.enable io_mesh_ply
addon_utils.enable io_mesh_stl
addon_utils.enable io_mesh_uv_layout
addon_utils.enable io_scene_fbx
addon_utils.enable io_scene_gltf2
addon_utils.enable io_scene_obj
addon_utils.enable io_scene_x3d
addon_utils.enable cycles
addon_utils.enable pose_library
Python Script Load Time 0.2025
Warning, unregistered class: ViewLayerAOVPanel(Panel)
Warning, unregistered class: ViewLayerCryptomattePanel(Panel)
Warning, unregistered class: CyclesPresetPanel(Panel)
[SCScene :: ViewLayer]: Removed 30 relations to no-op nodes
graph_id_tag_update: id=SCScene flags=TRANSFORM, GEOMETRY, SHADING, SELECT, BASE_FLAGS, POINT_CACHE, COPY_ON_WRITE, SEQUENCER_STRIPS, FRAME_CHANGE, AUDIO_FPS, AUDIO_VOLUME, AUDIO_MUTE, AUDIO_LISTENER, AUDIO, PARAMETERS, TAG_FOR_UNDO, ID_RECALC_NTREE_OUTPUT source=RELATIONS
graph_id_tag_update: id=OBCube flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=MECube flags=LEGACY_0 source=RELATIONS
graph_id_tag_update: id=MECube flags=COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=MAMaterial flags=COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=NTShader Nodetree flags=COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=NTShader Nodetree flags=COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=OBLight flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=LALight flags=COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=OBCamera flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=CACamera flags=COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=GRScene Collection flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=GRCollection flags=COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=WOWorld flags=COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=NTShader Nodetree flags=COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=NTShader Nodetree flags=COPY_ON_WRITE source=RELATIONS
graph_id_tag_update: id=LSLineStyle flags=COPY_ON_WRITE source=RELATIONS
Depsgraph built in 0.000520 seconds.
graph_id_tag_update: id=SCScene flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=OBCube flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=MECube flags=LEGACY_0 source=VISIBILITY
graph_id_tag_update: id=MECube flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=MAMaterial flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=NTShader Nodetree flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=NTShader Nodetree flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=OBLight flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=LALight flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=OBCamera flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=CACamera flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=GRScene Collection flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=GRCollection flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=WOWorld flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=NTShader Nodetree flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=NTShader Nodetree flags=COPY_ON_WRITE source=VISIBILITY
graph_id_tag_update: id=LSLineStyle flags=COPY_ON_WRITE source=VISIBILITY
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_FINAL()
[SCScene :: ViewLayer]: Operation is entry point for update: GEOMETRY_EVAL_INIT()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: OPERATION()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_SIMULATION_INIT()
[SCScene :: ViewLayer]: Operation is entry point for update: PARAMETERS_ENTRY()
[SCScene :: ViewLayer]: Operation is entry point for update: PARAMETERS_ENTRY()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: VIEW_LAYER_EVAL()
[SCScene :: ViewLayer]: Operation is entry point for update: IMAGE_ANIMATION()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_FINAL()
[SCScene :: ViewLayer]: Operation is entry point for update: PARAMETERS_EVAL()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: ViewLayer]: Operation is entry point for update: OPERATION()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_INIT()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: PARAMETERS_EXIT()
[SCScene :: ViewLayer]: Operation is entry point for update: SCENE_EVAL()
[SCScene :: ViewLayer]: Operation is entry point for update: IMAGE_ANIMATION()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_INIT()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: SEQUENCES_EVAL()
[SCScene :: ViewLayer]: Operation is entry point for update: AUDIO_ENTRY()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_LOCAL()
[SCScene :: ViewLayer]: Operation is entry point for update: GEOMETRY_SELECT_UPDATE()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_LOCAL()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: PARAMETERS_EXIT()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_EVAL()
[SCScene :: ViewLayer]: Operation is entry point for update: AUDIO_VOLUME()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_INIT()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_LOCAL()
[SCScene :: ViewLayer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: COPY_ON_WRITE()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_SIMULATION_INIT()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_SIMULATION_INIT()
[SCScene :: ViewLayer]: Operation is entry point for update: GEOMETRY_EVAL_DONE()
[SCScene :: ViewLayer]: Operation is entry point for update: PARAMETERS_EVAL()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_FINAL()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_EVAL()
[SCScene :: ViewLayer]: Operation is entry point for update: TRANSFORM_EVAL()
[SCScene :: ViewLayer]: Operation is entry point for update: SOUND_EVAL()
[SCScene :: ViewLayer]: Operation is entry point for update: GEOMETRY_EVAL_DONE()
[SCScene :: ViewLayer]: Accumulated recalc bits for SCScene: 4286574467
[SCScene :: ViewLayer]: Accumulated recalc bits for OBCube: 8323
[SCScene :: ViewLayer]: Accumulated recalc bits for MECube: 4286574467
[SCScene :: ViewLayer]: Accumulated recalc bits for MAMaterial: 8320
[SCScene :: ViewLayer]: Accumulated recalc bits for NTShader Nodetree: 8192
[SCScene :: ViewLayer]: Accumulated recalc bits for OBLight: 8195
[SCScene :: ViewLayer]: Accumulated recalc bits for LALight: 8320
[SCScene :: ViewLayer]: Accumulated recalc bits for OBCamera: 8195
[SCScene :: ViewLayer]: Accumulated recalc bits for CACamera: 8192
[SCScene :: ViewLayer]: Accumulated recalc bits for GRScene Collection: 8195
[SCScene :: ViewLayer]: Accumulated recalc bits for GRCollection: 8192
[SCScene :: ViewLayer]: Accumulated recalc bits for WOWorld: 8320
[SCScene :: ViewLayer]: Accumulated recalc bits for NTShader Nodetree: 8192
[SCScene :: ViewLayer]: Accumulated recalc bits for LSLineStyle: 8192
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on LSLineStyle (0x7f459b688438)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on NTShader Nodetree (0x7f459b6881b8)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on WOWorld (0x7f459b693738)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on GRCollection (0x7f459b692cb8)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on GRScene Collection (0x7f459b68eab8)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on CACamera (0x7f459b6872b8)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on OBCamera (0x7f459b5c5638)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on LALight (0x7f459daf8e38)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on OBLight (0x7f459b5c5038)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on NTShader Nodetree (0x7f459b687038)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on MAMaterial (0x7f459b49d0b8)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on MECube (0x7f459e087838)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on OBCube (0x7f459b2ba238)
[SCScene :: ViewLayer]: deg_evaluate_copy_on_write on SCScene (0x7f45a454a838)
[SCScene :: ViewLayer]: layer_eval_view_layer on ViewLayer (0x7f459b6a4538)
[SCScene :: ViewLayer]: BKE_object_eval_eval_base_flags on OBCamera (0x7f459b5c5638)
[SCScene :: ViewLayer]: BKE_object_eval_eval_base_flags on OBLight (0x7f459b5c5038)
[SCScene :: ViewLayer]: BKE_object_eval_eval_base_flags on OBCube (0x7f459b2ba238)
[SCScene :: ViewLayer]: SEQ_eval_sequences on SCScene (0x7f45a454a838)
[SCScene :: ViewLayer]: BKE_world_eval on WOWorld (0x7f459b693738)
[SCScene :: ViewLayer]: BKE_object_eval_local_transform on OBCamera (0x7f459b5c5638)
[SCScene :: ViewLayer]: BKE_object_eval_transform_final on OBCamera (0x7f459b5c5638)
[SCScene :: ViewLayer]: BKE_light_eval on LALight (0x7f459daf8e38)
[SCScene :: ViewLayer]: BKE_object_eval_local_transform on OBLight (0x7f459b5c5038)
[SCScene :: ViewLayer]: BKE_object_eval_transform_final on OBLight (0x7f459b5c5038)
[SCScene :: ViewLayer]: BKE_material_eval on MAMaterial (0x7f459b49d0b8)
[SCScene :: ViewLayer]: BKE_object_data_select_update on MECube (0x7f459e087838)
[SCScene :: ViewLayer]: BKE_mesh_eval_geometry on MECube (0x7f459e087838)
[SCScene :: ViewLayer]: BKE_object_eval_uber_data on OBCube (0x7f459b2ba238)
[SCScene :: ViewLayer]: BKE_object_handle_data_update on OBCube (0x7f459b2ba238)
[SCScene :: ViewLayer]: BKE_object_select_update on OBCube (0x7f459b2ba238)
[SCScene :: ViewLayer]: BKE_object_data_select_update on MECube (0x7f459b4f3838)
[SCScene :: ViewLayer]: BKE_object_eval_local_transform on OBCube (0x7f459b2ba238)
[SCScene :: ViewLayer]: BKE_object_eval_transform_final on OBCube (0x7f459b2ba238)
Depsgraph updated in 0.000632 seconds.
Depsgraph evaluation FPS: -nan
FRS_set_context: context 0x0x7f45a6c65b58 scene 0x0x7f459dbb0038
Error: Cannot read file '/content/drive/MyDrive/blender': No such file or directory
addon_utils.disable io_anim_bvh
addon_utils.disable io_curve_svg
addon_utils.disable io_mesh_ply
addon_utils.disable io_mesh_stl
addon_utils.disable io_mesh_uv_layout
addon_utils.disable io_scene_fbx
addon_utils.disable io_scene_gltf2
addon_utils.disable io_scene_obj
addon_utils.disable io_scene_x3d
addon_utils.disable cycles
addon_utils.disable pose_library
Blender quit
Can some one help me???
If you get an error
Device does not support queues
then replace --cycles-device OPTIX
with --cycles-device CUDA
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.