Skip to content

where to get the box feature? the bbox_file is empty. how to gererate the box feature from image? #115

@ekma000

Description

@ekma000

` elif cfg.MODEL.BUA.EXTRACTOR.MODE == 3: # extract roi features by bbox
npy = False
bbox_path = os.path.join(args.bbox_dir, im_file.split('.')[0])
if os.path.exists(bbox_path + '.npy'):
npy = True
bbox_file = bbox_path + '.npy'
elif os.path.exists(bbox_path + '.npz'):
bbox_file = bbox_path + '.npz'
else:
continue

        try:
            if npy:
                bbox = torch.from_numpy(np.load(bbox_file, allow_pickle=True).tolist()['bbox']) * dataset_dict['im_scale']
            else:
                bbox = torch.from_numpy(np.load(bbox_file)['bbox']) * dataset_dict['im_scale']
        except Exception as e:
            print(e)
            continue`

where to get the box feature? the bbox_file is empty. how to gererate the box feature from image?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions