We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
` 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?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
` 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
where to get the box feature? the bbox_file is empty. how to gererate the box feature from image?
The text was updated successfully, but these errors were encountered: