differentiable-point-clouds icon indicating copy to clipboard operation
differentiable-point-clouds copied to clipboard

No such file or directory: './final_reference_rotation.mat'

Open jeannotes opened this issue 4 years ago • 2 comments

thanks for your work, but there is one issue: FileNotFoundError: [Errno 2] No such file or directory: './final_reference_rotation.mat' hope you reply

jeannotes avatar Apr 10 '20 02:04 jeannotes

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:

  1. You might need to update the lines where open3d is used.
  2. 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

HimangiM avatar Jan 23 '21 04:01 HimangiM

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.

OniDaito avatar Mar 29 '21 13:03 OniDaito