throwstd::runtime_error{"testbed.screenshot() in only supported when compiling with NGP_GUI."};
#endif
}
#endif
PYBIND11_MODULE(pyngp,m){
m.doc()="Instant neural graphics primitives";
...
...
@@ -326,12 +326,21 @@ PYBIND11_MODULE(pyngp, m) {
.def("load_training_data",&Testbed::load_training_data,py::call_guard<py::gil_scoped_release>(),"Load training data from a given path.")
.def("clear_training_data",&Testbed::clear_training_data,"Clears training data to free up GPU memory.")
// General control
#ifdef NGP_GUI
.def("init_window",&Testbed::init_window,"Init a GLFW window that shows real-time progress and a GUI. 'second_window' creates a second copy of the output in its own window",