ggcnn icon indicating copy to clipboard operation
ggcnn copied to clipboard

AttributeError

Open normajeane-m opened this issue 1 year ago • 2 comments

I appreciated your amazing research.

After the pcd files were converted to depth images (using function generate_cornell_depth), I got some errors when I tried to train the network with Cornell dataset.

python3 train_ggcnn.py --description training --network ggcnn2 --dataset cornell --dataset-path cornell/

AttributeError: Caught AttributeError in DataLoader worker process 0
AttributeError: Couldn't find function center in BoundingBoxes or BoundingBox

There was same result with evaluation code with pre-trained model.

python3 eval_ggcnn.py --network ggcnn_weights_cornell/ggcnn_epoch_23_cornell --dataset cornell --dataset-path cornell --iou-eval

AttributeError: Caught AttributeError in DataLoader worker process 0
AttributeError: Couldn't find function center in BoundingBoxes or BoundingBox

But, I tested the task to loading the ggcnn using pre-trained model.

from models.ggcnn import GGCNN model = GGCNN() model.load_state_dict(torch.load('ggcnn_weights_cornell/ggcnn_epoch_23_cornell_statedict.pt'))

All keys matched successfully

I would like to thank you once again.

normajeane-m avatar Sep 19 '23 04:09 normajeane-m

I also faced the issue and changing numpy version worked for me!

pip uninstall numpy
pip install numpy==1.22

kalyanksk avatar Oct 01 '23 02:10 kalyanksk

I also met this two questions.

t-272 avatar May 06 '24 08:05 t-272