RandLA-Net icon indicating copy to clipboard operation
RandLA-Net copied to clipboard

the difference between the number of classes

Open ayoubOUSSM2021 opened this issue 3 years ago • 8 comments

Hi ; I tried to apply the model on my dataset, I prepared this data as Semantic3D dataset but I have 6 classes instead of 8 classes and I set the number of classes = 6 in helper_tool.py file but when I run the training the metrics = NaN
Can you help me to solve this problem and thanks in advance

ayoubOUSSM2021 avatar Oct 09 '21 08:10 ayoubOUSSM2021

Is your problem solved, because I am also facing same issue with semantic KITTI dataset. If yes, it would be helpful to share the solution.

loki-veera avatar Oct 19 '21 09:10 loki-veera

Hi , I have not yet solved the problem and you ?

ayoubOUSSM2021 avatar Oct 21 '21 20:10 ayoubOUSSM2021

I kind of solved it but the issue is with new classes the network doesn't optimize. I changed the semantic KITTI classes from 19 to 17 and also changed the https://github.com/QingyongHu/RandLA-Net/blob/6b5445f5f279d33d2335e85ed39ca8b68cb1c57e/helper_tool.py#L256 by removing the weights of classes which are not needed.

loki-veera avatar Oct 21 '21 21:10 loki-veera

Hi , I've done this before but still the problem of NaN , please see screenshot (I have 6 classes ) 136954024-d687873e-2f5c-42e2-8aff-bc46df116928

ayoubOUSSM2021 avatar Oct 22 '21 14:10 ayoubOUSSM2021

I think the problem is with division if your denominator is zero then leads to infinity which leads to NaN. I would try adding a small constant of 1e-6 to denominator (like float(expression+1e-6)) and run. Please let me know the status if you run like this.

loki-veera avatar Oct 22 '21 15:10 loki-veera

I tested this but unfortunately still the same problem, please if you have other ways to solve the problem and thank you in advance I think the problem is in this part: img

ayoubOUSSM2021 avatar Oct 23 '21 15:10 ayoubOUSSM2021

Hi , Is your problem solved ? , if yes, it would be helpful to share the solution. thank you in advance

ayoubOUSSM2021 avatar Oct 30 '21 20:10 ayoubOUSSM2021

Hi Unfortuntely no, I didn't solve it.

loki-veera avatar Oct 31 '21 15:10 loki-veera