I have a script to generate images. Unfortunately, I do not have a GPU and everytime I execute it using CPU, the script breaks after some images and throws some error. I was hoping that is there any way to run python scripts from blender background on Google colab.
I have already done the following:
!apt install blender
!apt install libboost-all-dev
!apt install libgl1-mesa-dev
Executing the above command verifies that blender is already installed. Then I try to run python script in blender background:
!blender --background --python script.py -- --num_images 100
But then I keep getting the following error and nothing happens.
src/tcmalloc.cc:283] Attempt to free invalid pointer 0x7f268381e040
The runtime type has been chosen as GPU. Does someone know how to fix it?
Thank you!
When using blender on Colab, you need to set the -noaudio
option.
!blender -b -noaudio --python script.py
References: Blender Command Line Arguments
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.