FILM icon indicating copy to clipboard operation
FILM copied to clipboard

Receptacle M-RCNN label set

Open Axe-- opened this issue 2 years ago • 3 comments

Hey, for the pretrained receptacle Mask RCNN, where is the corresponding label set (classes) that contains the 32 categories?

The alfworld_receptacles variable contains 38 classes, and upon visualizing the bboxes, the labels predicted are incorrect (mismatch).

Could you assist with the same, Thanks!

def load_pretrained_model(path, device, which_type):
    if which_type == 'obj':
        categories = len(object_detector_objs)
    elif which_type =='recep':
        categories = 32
    mask_rcnn = get_model_instance_segmentation(categories+1)
    #pickle.dump(torch.load(path, map_location=device), open("loaded.p", "wb"))
    mask_rcnn.load_state_dict(torch.load(path, map_location=device))
    return mask_rcnn

Axe-- avatar Apr 05 '22 19:04 Axe--

Hello, sorry for my late reply. I will reply back in a few days!

soyeonm avatar Apr 11 '22 16:04 soyeonm

I think you can find this one in https://github.com/alfworld/alfworld/blob/master/alfworld/gen/constants.py#L1206 since they are using the pretrained detector from this repo.

joeyy5588 avatar May 10 '22 06:05 joeyy5588

Hi! Having the same confusion. It seems that only 16 receptacle objects are segmented. What are they and what are the correspondences between them and the visualization color palette? Thanks :)

ByZ0e avatar Dec 27 '23 08:12 ByZ0e