LiDAR-Diffusion icon indicating copy to clipboard operation
LiDAR-Diffusion copied to clipboard

Question on evaluation

Open andyj1 opened this issue 1 year ago • 2 comments

def load_pretrained_weights(self, path): w_dict = torch.load(path + "/backbone", map_location=lambda storage, loc: storage) self.backbone.load_state_dict(w_dict, strict=True) w_dict = torch.load(path + "/segmentation_decoder", map_location=lambda storage, loc: storage) self.decoder.load_state_dict(w_dict, strict=True)

thanks for the amazing work. I have a question on running the evaluation code. The code above in the modules/rangenet/model.py (for RangeNet++ for example), it directs to './pretrained_weights/kitti/rangenet/backbone', which is a directory. I wonder how to properly load the pretrained_weights. Thanks!

andyj1 avatar Feb 25 '25 09:02 andyj1

Met the same prob. Replacing rangenet folder with ckpt from this url fixs this prob.

yiningsutd avatar Mar 14 '25 17:03 yiningsutd

def load_pretrained_weights(self, path): w_dict = torch.load(path + "/backbone", map_location=lambda storage, loc: storage) self.backbone.load_state_dict(w_dict, strict=True) w_dict = torch.load(path + "/segmentation_decoder", map_location=lambda storage, loc: storage) self.decoder.load_state_dict(w_dict, strict=True)

thanks for the amazing work. I have a question on running the evaluation code. The code above in the modules/rangenet/model.py (for RangeNet++ for example), it directs to './pretrained_weights/kitti/rangenet/backbone', which is a directory. I wonder how to properly load the pretrained_weights. Thanks!

w_dict = torch.load(path + "/backbone.zip" , map_location=lambda storage, loc: storage)

I make it by add '.zip' suffix.

cqf7419 avatar Apr 28 '25 13:04 cqf7419