Still Not able to load claissifier (SOLVED)

For any question related to the 3DMASC forum
Post Reply
vincen
Posts: 10
Joined: Tue Mar 26, 2024 5:17 pm

Still Not able to load claissifier (SOLVED)

Post 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
Last edited by vincen on Thu Apr 11, 2024 2:53 pm, edited 1 time in total.
paul.leroy
Posts: 40
Joined: Tue Dec 01, 2020 1:21 pm

Re: Still Not able to load claissifier

Post by paul.leroy »

You have no 'classifier.yaml' file associated with the file 'classifier.txt'? It should be in the same repository.
vincen
Posts: 10
Joined: Tue Mar 26, 2024 5:17 pm

Re: Still Not able to load claissifier

Post by vincen »

Yes, exactly, no .yaml file is in the directory !
paul.leroy
Posts: 40
Joined: Tue Dec 01, 2020 1:21 pm

Re: Still Not able to load claissifier (SOLVED)

Post 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.
Post Reply