differentiable-point-clouds
differentiable-point-clouds copied to clipboard
No such file or directory: './final_reference_rotation.mat'
thanks for your work, but there is one issue: FileNotFoundError: [Errno 2] No such file or directory: './final_reference_rotation.mat' hope you reply
Maybe try to run the dpc/run/compute_alignment.py on the test set. It generates the final_reference_rotation.mat. There are a few changes that might be needed:
- You might need to update the lines where open3d is used.
- Most importantly, the pred folder for each object has Matlab files without the .mat extension. It throws an error like - '_pc.mat' file not found. So, remove the '.mat' from the lines where files of the pred folder are loaded. For example, replace the 106 line of compute_alignment.py to data = scipy.io.loadmat(f"{save_dir}/{sample.name}_pc") and line 87 of eval_chamfer.py to mat_filename = "{}/{}_pc".format(save_dir, sample.name).
I hope this helps
I have the same problem and can confirm the solution above. Any references to the .mat files in the pred file need changing. Open3D has changed a lot since this code was written - I've had to change many of the imports and function calls, adding a few extra modules names.
Running
python ../../dpc/run/compute_alignment.py
.... got me the final_reference_rotation.mat matrix I needed. I could then run
python ../../dpc/run/predict_eval.py --eval_split=test
I think the thing to do here might be to fix all these statements and submit a pull request.