BlenderProc
BlenderProc copied to clipboard
How to use Blenderproc without producing anything in root path
Describe the issue
Blender will download and install Blender at root folder /usr by default, and it sometimes also have some temporary in /dev and in /tmp. But I don't have many space in my root folder. So I just want to know how to set the feature (parameter) so that the usage of the Blenderproc won't have anything produced in the root folder
Minimal code example
No response
Files required to run the code
for example, running "blender quickstart" will download and install many packages in the python environment and take many space in root folder
Expected behavior
when running blenderproc, all the file and temporary file will only in the path I want not in the root folder
BlenderProc version
2
Hey @Jusker-Greek,
you can use --temp-dir and --blender-install-path to specify which temp dir to use and where blender should be installed (see blenderproc quickstart --help)
Thanks a lot!@cornerfarmer
I use this following argument
blenderproc run ./main.py --custom-blender-path /hdd2/G/dimension/Data/SIE/blender/blender-3.5.1-linux-x64 --blender-install-path /hdd2/G/dimension/Data/SIE/blender/ --tmp-dir /hdd2/G/tmp --keep-temp-dir
and got as following
does the usage correct?(I notice that it still use a /dev/tmp)
But still thanks a lot!
Maybe it was because that I haven't install some packages in the blender python environment?
I use the following command to install blenderproc pip install imgaug --custom-blender-path /hdd2/G/dimension/Data/SIE/blender/blender-3.5.1-linux-x64 --blender-install-path /hdd2/G/dimension/Data/SIE/blender/ --tmp-dir /hdd2/G/tmp --keep-temp-dir
and got
does it matter?
thanks! @cornerfarmer
or I wander whether there is some way that i can check the installed packages in the blender python package? I have tried 'conda list' and ‘blenderproc pip show’ but can't find the environment or the packages in it
Hey @Jusker-Greek,
if you use --temp-dir instead of --tmp-dir, then the temp dir should be set correctly. The usage of --custom-blender-path should not be necessary.
So could you please remove the blender installation and then run your command again by only using --temp-dir and --blender-install-path. Then imageio should be installed correctly. Let me know if that works.
thanks a lot for your really fast reply! @cornerfarmer I am trying to remove the blender and it will take some time
I wonder could I just modify the path to another path and by doing that, let the blenderproc ignore the installed blender? Such as setting the '--custom-blender-path' as '/hdd2/G/dimension/Data/SIE/Blender/blender-3.5.1-linux-x64' (up case "B" in folder "blender")?
thanks a lot!
thanka a lot for your fast and useful instruction! @cornerfarmer It seems that the new installed Blender could work and all the requird packages is installed
thanks!