Fsoft-AIC/Open-Vocabulary-Affordance-Detection-in-3D-Point-Clouds

'dict' object has no attribute 'astype'

Closed this issue · 5 comments

Hello, I encountered a problem running the train.py file according to the document. How can I solve it?
image

The problem lies in the AffirmanceNet.py line 65: temp = labels.astype(np.float32).reshape(-1, 1)

Hi @mxmdpc, the labels, if loaded properly, should be of type numpy.ndarray. Please carefully double check the data loading process.

Best regards,
Toan.

Yes, is numpy.ndarry, but the labels are dict, I donnot know how to change the codes?
image
Best regards,
Chen

Did you use our dataset or the 3D AffordanceNet dataset? It seems like you used the latter. Please note that our dataset is different from the 3D AffordanceNet dataset, in which we only keep the argmax for the labels. We provided the Drive link to our dataset in README, please download and use it for this repository.

Best regards,
Toan.

I see, thank you very much, I'll try to download and run this program

With respect,
Chen