Page 1 of 1

Still Not able to load claissifier (SOLVED)

Posted: Mon Apr 08, 2024 2:58 pm
by vincen
Solution : Accent in the path file that caused the .yaml file to not save correctly.

When I try to load the classifier .txt file in the classification step, i get this error :

Failed to load the classifier file from (insert path to file here)

I really don't know that seems to be the problem here...

I am on windows and using the latest version of CloudCompare.

Here is what's inside the classifier .txt file generated after the training :

# 3DMASC classifier file
classifier: classifier.yaml
# Clouds (roles)
cloud: PC1
# Core points (classified role)
core_points: PC1
# Features
feature: ROUGH_SC0.1_PC1
feature: ROUGH_SC0.2_PC1
feature: ROUGH_SC0.75_PC1
feature: ROUGH_SC1_PC1
feature: ROUGH_SC2_PC1
feature: ROUGH_SC5_PC1
feature: ANISO_SC0.1_PC1
feature: ANISO_SC0.2_PC1
feature: ANISO_SC0.75_PC1
feature: ANISO_SC1_PC1
feature: ANISO_SC2_PC1
feature: ANISO_SC5_PC1
feature: SPHER_SC0.1_PC1
feature: SPHER_SC0.2_PC1
feature: SPHER_SC0.75_PC1
feature: SPHER_SC1_PC1
feature: SPHER_SC2_PC1
feature: SPHER_SC5_PC1
feature: LINEA_SC0.1_PC1
feature: LINEA_SC0.2_PC1
feature: LINEA_SC0.75_PC1
feature: LINEA_SC1_PC1
feature: LINEA_SC2_PC1
feature: LINEA_SC5_PC1
feature: PLANA_SC0.1_PC1
feature: PLANA_SC0.2_PC1
feature: PLANA_SC0.75_PC1
feature: PLANA_SC1_PC1
feature: PLANA_SC2_PC1
feature: PLANA_SC5_PC1
feature: CURV_SC0.1_PC1
feature: CURV_SC0.2_PC1
feature: CURV_SC0.75_PC1
feature: CURV_SC1_PC1
feature: CURV_SC2_PC1
feature: CURV_SC5_PC1
feature: Zmin_SC0.1_PC1
feature: Zmin_SC0.2_PC1
feature: Zmin_SC0.75_PC1
feature: Zmin_SC1_PC1
feature: Zmin_SC2_PC1
feature: Zmin_SC5_PC1
feature: R_SC0_PC1
feature: G_SC0_PC1
feature: B_SC0_PC1

Re: Still Not able to load claissifier

Posted: Mon Apr 08, 2024 9:04 pm
by paul.leroy
You have no 'classifier.yaml' file associated with the file 'classifier.txt'? It should be in the same repository.

Re: Still Not able to load claissifier

Posted: Wed Apr 10, 2024 3:54 pm
by vincen
Yes, exactly, no .yaml file is in the directory !

Re: Still Not able to load claissifier (SOLVED)

Posted: Fri Apr 12, 2024 8:44 am
by paul.leroy
[SOLVED]
The error came from the directory in which the classifier was saved. The path to this directory included an accent.
[SOLUTION]
Remove any accent from the path.