nex-mpi / nex-code

Code release for NeX: Real-time View Synthesis with Neural Basis Expansion
MIT License
595 stars 73 forks source link

rendered_val\images does not exist #36

Open JuanViPerea opened 3 years ago

JuanViPerea commented 3 years ago

"train.py" in 770: train() train.py "train.py" in train 693: generateAlpha(model, dataset, dataloader_val, writer, runpath, epoch) train.py "train.py" in generateAlpha 516: out = evaluation(model, train.py "mpi_utils.py" in evaluation 280: info_dict = measurement(model, dataset.sfm, dataloader, ray, webpath + outputFile + '/rendered_val') C:\Files JuanVi\2. Proyectos\ML\nex-code-main\utils\mpi_utils.py "mpi_utils.py" in measurement 412: io.imsave(os.path.join(write_path, '{}_ours.png'.format(filename)), (predict_image * 255).astype(np.uint8)) C:\Files JuanVi\2. Proyectos\ML\nex-code-main\utils\mpi_utils.py "_io.py" in imsave 136: return call_plugin('imsave', fname, arr, plugin=plugin, plugin_args) C:\Users\capit\anaconda3\lib\site-packages\skimage\io_io.py "manage_plugins.py" in call_plugin* 207: return func(args, kwargs) C:\Users\capit\anaconda3\lib\site-packages\skimage\io\manage_plugins.py "functions.py" in imwrite 303: writer = get_writer(uri, format, "i", kwargs) C:\Users\capit\anaconda3\lib\site-packages\imageio\core\functions.py "functions.py" in get_writer 217: request = Request(uri, "w" + mode, kwargs) C:\Users\capit\anaconda3\lib\site-packages\imageio\core\functions.py "request.py" in init 124: self._parse_uri(uri) C:\Users\capit\anaconda3\lib\site-packages\imageio\core\request.py "request.py" in _parse_uri 265: raise FileNotFoundError("The directory %r does not exist" % dn) C:\Users\capit\anaconda3\lib\site-packages\imageio\core\request.py FileNotFoundError: The directory 'C:\Files JuanVi\2. Proyectos\ML\nex-code-main\runs\evaluation\crest\000200\rendered_val\images' does not exist**

Had this error pop up after training for an hour or so. Loaded the file with python train.py -scene data\crest_demo -model_dir crest -http -layers 6 -sublayers 2 -hidden 16 -num_workers 4 on windows 10.

Any idea on how to fix this is welcomed. I can confirm that the file/folder images does not exist inside rendered_val folder.

pureexe commented 3 years ago

Windows has messed up filesystem behavior.

You need to confirm the value in mpi_utils.py line 412. is that write_path folder exist?