Hello,
I am trying to run ForAInet with the default settings with as little effort as possible. I would like to use the existing pre-trained model on my datasets and have a couple of questions
-
I installed the ForAInet from the docker container using Docker file
-
I do not want to train my data, just use the pre-trained model on my dataset, so I put my dataset into the folder and adjusted the eval.yaml "data: fold..."
-
I downloaded the pre-trained model and set the checkpoint_dir:path
Here is a part of the directories where my data
ForAinet
├── tree_metrics
├── superpoint_graph
├── PointCloudSegmentation
├── torch_points3d
├── scripts
├── forward_scripts
├── conf
├── data
├── checkpoints # I created this folder and changed it in eval.yaml file
│ ├── PointGroup-PAPER.pt #zipped model file
│ └── archive #unzipped model file
│ ├── data
│ ├── data.pkl
│ └── version
│
├── alt12_9_eval.ply #data for using the ForAInet - 4 .ply datasets
├── pol01_lwpl_eval.ply
├── Single_tree_eval.ply
└── Wl28_FraExc_normalized_eval.ply
├──
... ### other files
...
Here is the eval.yaml file:
eval.yaml
defaults:
- visualization: eval
num_workers: 0
batch_size: 1
cuda: 0
weight_name: "latest" # Used during resume, select with model to load from [miou, macc, acc..., latest]
enable_cudnn: True
checkpoint_dir: "/home/jakub/SmaSiKaFe/Methodologies/ForAINet/ForAINet/PointCloudSegmentation/data/checkpoints/archive"
model_name: PointGroup-PAPER
precompute_multi_scale: True # Compute multiscate features on cpu for faster training / inference
enable_dropout: False
voting_runs: 1
data:
# number, e.g. 3 OR ply path, e.g. "/cluster/work/igp_psr/yuayue/RA/WP1/check_jan12/TP3D_PanopticSeg/data/npm3dfused/raw/Paris.ply"
# test files for basic settings (remember change to your data path)
fold: ['/home/jakub/SmaSiKaFe/Methodologies/ForAINet/ForAINet/PointCloudSegmentation/data/alt12_9_eval.ply',
'/home/jakub/SmaSiKaFe/Methodologies/ForAINet/ForAINet/PointCloudSegmentation/data/Wl28_FraExc_normalized_eval.ply',
'/home/jakub/SmaSiKaFe/Methodologies/ForAINet/ForAINet/PointCloudSegmentation/data/pol01_lwpl_eval.ply',
'/home/jakub/SmaSiKaFe/Methodologies/ForAINet/ForAINet/PointCloudSegmentation/data/Single_tree_eval.ply']
# test files for understory trees experiment
#fold: ['/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot1_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot10_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot15_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot27_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot3_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot32_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot34_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot35_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot48_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot49_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot52_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot53_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot58_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot6_annotated_test.ply', '/cluster/work/igp_psr/binbin/OutdoorPanopticSeg_V2/data_set1_5classes/treeinsfused/raw/NIBIO2/NIBIO2_plot60_annotated_test.ply']
tracker_options: # Extra options for the tracker
full_res: True
make_submission: True
ply_output: "vote1regular.ply"
hydra:
run:
dir: ${checkpoint_dir}/eval/${now:%Y-%m-%d_%H-%M-%S}
However, after running:
cd /forainet/PointCloudSegmentation
python3 eval.py
the Value error occurs.
Traceback (most recent call last):
File "eval.py", line 22, in <module>
main()
File "/usr/local/lib/python3.8/dist-packages/hydra/main.py", line 32, in decorated_main
_run_hydra(
File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 346, in _run_hydra
run_and_report(
File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 201, in run_and_report
raise ex
File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 198, in run_and_report
return func()
File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 347, in <lambda>
lambda: hydra.run(
File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/hydra.py", line 107, in run
return run_job(
File "/usr/local/lib/python3.8/dist-packages/hydra/core/utils.py", line 129, in run_job
ret.return_value = task_function(task_cfg)
File "eval.py", line 13, in main
trainer = Trainer(cfg)
File "/app/forainet/PointCloudSegmentation/torch_points3d/trainer.py", line 48, in __init__
self._initialize_trainer()
File "/app/forainet/PointCloudSegmentation/torch_points3d/trainer.py", line 80, in _initialize_trainer
self._checkpoint: ModelCheckpoint = ModelCheckpoint(
File "/app/forainet/PointCloudSegmentation/torch_points3d/metrics/model_checkpoint.py", line 173, in __init__
self._checkpoint = Checkpoint.load(load_dir, check_name, run_config=rc, strict=strict, resume=resume)
File "/app/forainet/PointCloudSegmentation/torch_points3d/metrics/model_checkpoint.py", line 73, in load
raise ValueError(message)
ValueError: The provided path /home/jakub/SmaSiKaFe/Methodologies/ForAINet/ForAINet/PointCloudSegmentation/data/checkpoints/PointGroup-PAPER.pt didn't contain the checkpoint_file PointGroup-PAPER.pt
Are there any other .yaml files that I must change or correct to make it work?
Hello,
I am trying to run ForAInet with the default settings with as little effort as possible. I would like to use the existing pre-trained model on my datasets and have a couple of questions
I installed the ForAInet from the docker container using Docker file
I do not want to train my data, just use the pre-trained model on my dataset, so I put my dataset into the folder and adjusted the eval.yaml "data: fold..."
I downloaded the pre-trained model and set the checkpoint_dir:path
Here is the eval.yaml file:
eval.yaml
However, after running:
the Value error occurs.
Are there any other .yaml files that I must change or correct to make it work?