Error when loading classifier
Posted: Tue Aug 20, 2024 5:48 pm
Hi,
When I try to load the classifier saved after the training step I get this error,
\opencv\modules\core\src\alloc.cpp:55: error: (-4) Failed to allocate 262144 bytes in function cv::OutOfMemoryError
Is there anything I can do/change to solve this?
My input point cloud is a fairly small (but dense) point cloud from the SNCF,
https://ressources.data.sncf.com/explor ... formation/
My computer has 32GB of RAM.
This is how my classifier.txt file looks like,
# 3DMASC classifier file
classifier: classifier.yaml
# Clouds (roles)
cloud: PC1
# Core points (classified role)
core_points: PC1
# Features
feature: Dip_SC0.5_PC1
feature: Dip_SC1_PC1
feature: Dip_SC1.5_PC1
feature: Dip_SC2_PC1
feature: DipDir_SC0.5_PC1
feature: DipDir_SC1_PC1
feature: DipDir_SC1.5_PC1
feature: DipDir_SC2_PC1
feature: PCA1_SC0.5_PC1
feature: PCA1_SC1_PC1
feature: PCA1_SC1.5_PC1
feature: PCA1_SC2_PC1
feature: PCA2_SC0.5_PC1
feature: PCA2_SC1_PC1
feature: PCA2_SC1.5_PC1
feature: PCA2_SC2_PC1
feature: PCA3_SC0.5_PC1
feature: PCA3_SC1_PC1
feature: PCA3_SC1.5_PC1
feature: PCA3_SC2_PC1
feature: SPHER_SC0.5_PC1
feature: SPHER_SC1_PC1
feature: SPHER_SC1.5_PC1
feature: SPHER_SC2_PC1
feature: ANISO_SC0.5_PC1
feature: ANISO_SC1_PC1
feature: ANISO_SC1.5_PC1
feature: ANISO_SC2_PC1
feature: LINEA_SC0.5_PC1
feature: LINEA_SC1_PC1
feature: LINEA_SC1.5_PC1
feature: LINEA_SC2_PC1
feature: PLANA_SC0.5_PC1
feature: PLANA_SC1_PC1
feature: PLANA_SC1.5_PC1
feature: PLANA_SC2_PC1
feature: Zmin_SC0.5_PC1
feature: Zmin_SC1_PC1
feature: Zmin_SC1.5_PC1
feature: Zmin_SC2_PC1
feature: Zmax_SC0.5_PC1
feature: Zmax_SC1_PC1
feature: Zmax_SC1.5_PC1
feature: Zmax_SC2_PC1
feature: ZRANGE_SC0.5_PC1
feature: ZRANGE_SC1_PC1
feature: ZRANGE_SC1.5_PC1
feature: ZRANGE_SC2_PC1
When I try to load the classifier saved after the training step I get this error,
\opencv\modules\core\src\alloc.cpp:55: error: (-4) Failed to allocate 262144 bytes in function cv::OutOfMemoryError
Is there anything I can do/change to solve this?
My input point cloud is a fairly small (but dense) point cloud from the SNCF,
https://ressources.data.sncf.com/explor ... formation/
My computer has 32GB of RAM.
This is how my classifier.txt file looks like,
# 3DMASC classifier file
classifier: classifier.yaml
# Clouds (roles)
cloud: PC1
# Core points (classified role)
core_points: PC1
# Features
feature: Dip_SC0.5_PC1
feature: Dip_SC1_PC1
feature: Dip_SC1.5_PC1
feature: Dip_SC2_PC1
feature: DipDir_SC0.5_PC1
feature: DipDir_SC1_PC1
feature: DipDir_SC1.5_PC1
feature: DipDir_SC2_PC1
feature: PCA1_SC0.5_PC1
feature: PCA1_SC1_PC1
feature: PCA1_SC1.5_PC1
feature: PCA1_SC2_PC1
feature: PCA2_SC0.5_PC1
feature: PCA2_SC1_PC1
feature: PCA2_SC1.5_PC1
feature: PCA2_SC2_PC1
feature: PCA3_SC0.5_PC1
feature: PCA3_SC1_PC1
feature: PCA3_SC1.5_PC1
feature: PCA3_SC2_PC1
feature: SPHER_SC0.5_PC1
feature: SPHER_SC1_PC1
feature: SPHER_SC1.5_PC1
feature: SPHER_SC2_PC1
feature: ANISO_SC0.5_PC1
feature: ANISO_SC1_PC1
feature: ANISO_SC1.5_PC1
feature: ANISO_SC2_PC1
feature: LINEA_SC0.5_PC1
feature: LINEA_SC1_PC1
feature: LINEA_SC1.5_PC1
feature: LINEA_SC2_PC1
feature: PLANA_SC0.5_PC1
feature: PLANA_SC1_PC1
feature: PLANA_SC1.5_PC1
feature: PLANA_SC2_PC1
feature: Zmin_SC0.5_PC1
feature: Zmin_SC1_PC1
feature: Zmin_SC1.5_PC1
feature: Zmin_SC2_PC1
feature: Zmax_SC0.5_PC1
feature: Zmax_SC1_PC1
feature: Zmax_SC1.5_PC1
feature: Zmax_SC2_PC1
feature: ZRANGE_SC0.5_PC1
feature: ZRANGE_SC1_PC1
feature: ZRANGE_SC1.5_PC1
feature: ZRANGE_SC2_PC1