Update the data_location.py
file with the root location of your dataset to match your system's directory structure.
Execute the following commands in your terminal. If necessary, replace python
with the version specific to your system (e.g., python3
).
python fit_data.py --type 'vox'
python fit_data.py --type 'point'
python fit_data.py --type 'mesh'
For training the model and reconstructing 3D from a single view, use the following commands:
- This will create "checkpoint_vox.pth" in the root directory.
python train_model.py --type 'vox'
- Evaluate the model with:
python eval_model.py --type 'vox' --load_checkpoint
- Change the
step
parameter to select specific predictions to save. - Predictions and ground truths will be saved in "Visualization/Vis_vox".
Ground Truth | Predicted |
- This will create "checkpoint_point.pth" in the root directory.
python train_model.py --type 'point'
- Evaluate the model with:
python eval_model.py --type 'point' --load_checkpoint
- Predictions and ground truths will be saved in "Visualization/Vis_point".
Ground Truth | Predicted |
- This will create "checkpoint_mesh.pth" in the root directory.
python train_model.py --type 'mesh'
- Evaluate the model with:
python eval_model.py --type 'mesh' --load_checkpoint
- Predictions and ground truths will be saved in "Visualization/Vis_mesh".
Ground Truth | Predicted |
After each evaluation, the threshold vs F1 score plot is saved in the "Visualization/Evaluation" directory.