maximeraafat / BlenderNeRF

Easy NeRF synthetic dataset creation within Blender
MIT License
811 stars 51 forks source link

generating test renderings. #32

Closed adam-ce closed 6 months ago

adam-ce commented 9 months ago

Hi, I wanted to use this plugin to generate training and test data for our Gaussian splatting implementation.

And it generates training data, but no test data. looking into the code, I saw in cos_operator, that it appears to only write the JSON file. is that possible at all?

thanks, adam

maximeraafat commented 9 months ago

Hi @adam-ce, thanks for your question.

Yes you are correct, BlenderNeRF was originally designed with the intention of performing inference directly using a NeRF implementation. If you however need testing data, you can directly render it by selecting the camera of interest as active camera in Blender, and render the Blender animation on the desired set of frames (using the Render > Render Animation button). If the camera you need happens to be the COS camera, just select the Camera preview button in the COS tab, and then select the created BlenderNeRF Camera object as active camera.

Hope this solves your issue!

adam-ce commented 9 months ago

thanks for the answer :) to my understanding (but i might be wrong) that won't create a separate testing set, no? that would just use the same camera views as the training camera(?)

i would need the test views to be rendered with different positions than the training cameras, and referenced in the json file.

maximeraafat commented 9 months ago

Yes correct, I should have specified that this will render the same views as for training. You could however disable training by simply unticking the Train button in the first BlenderNeRF tab, select a different seed for the COS method, and use the previewed BlenderNeRF camera as test camera for the COS method (the camera object that you can select at the top of the tab). That should do it :)

adam-ce commented 9 months ago

ok. thanks for the help and the effort :)

though at this point the plugin becomes more complicated than our python script. thanks anyways :)

maximeraafat commented 9 months ago

My pleasure, and feel free to adapt the plugin to your own needs if it simplifies your pipeline :)