Hello together it's me again :)
I tried to run the rerun.py program and everything worked fine except for the output.
The program outputs every file in the same folder and therefor overwrites every output image.
How can I solve this problem?
Thank you very much in advance :)
Hey,
this script only works if the last argument is the output directory. Did you check that?
Which example did you execute?
Best,
Max
I tried it with my own project. But it is the same problem with each example...
For demonstration: I tried the light_sampling: I ran python rerun.py examples/light_sampling/config.yaml examples/light_sampling/output
Do I have to pre define the Folders where the results get stored in? I thought that happens automatically...
Thank you! :)
Hey @SchmidtiT ,
are you sure you did not change anything in the code?
If I run in a fresh BlenderProc checkout the following command:
python rerun.py examples/light_sampling/config.yaml examples/light_sampling/camera_positions examples/light_sampling/scene.obj examples/light_sampling/output
It works perfectly, so for each run automatically a own subfolder is created.
When I use the command you suggested everything works fine. But I always executed the program in a different way so I think that is where the problem comes from.
I entered the path names directly into the config file to avoid typing that much in the console. This works fine when only executing the run.py program but not when executing the rerun.py program
Again what learned!
Thank you Max!
Great that it works now!
However, when replacing the args in the config file it should work as well. If you replace <args:0> and <args:1> with their full path and change <args:2> to <args:0>, then python rerun.py examples/light_sampling/config.yaml examples/light_sampling/output should also work.
You just must not replace the output arg with a fixed path, because then it will of course always write the output into the same directory
Yes that was my problem. I wrote the output Folder also in the config file...