BlenderProc icon indicating copy to clipboard operation
BlenderProc copied to clipboard

How to use Blenderproc without producing anything in root path

Open Jusker-Greek opened this issue 1 year ago • 1 comments

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

Jusker-Greek avatar May 15 '24 14:05 Jusker-Greek

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)

cornerfarmer avatar May 15 '24 16:05 cornerfarmer

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 image does the usage correct?(I notice that it still use a /dev/tmp)

But still thanks a lot!

Jusker-Greek avatar May 16 '24 09:05 Jusker-Greek

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 image does it matter?

thanks! @cornerfarmer

Jusker-Greek avatar May 16 '24 09:05 Jusker-Greek

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

Jusker-Greek avatar May 16 '24 09:05 Jusker-Greek

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.

cornerfarmer avatar May 16 '24 09:05 cornerfarmer

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!

Jusker-Greek avatar May 16 '24 10:05 Jusker-Greek

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!

Jusker-Greek avatar May 16 '24 10:05 Jusker-Greek