Open MaxTeselkin opened 1 year ago
Ran into the same issue, I'm guessing it has to do with dataset_idx
being populated in the configs. I don't know what the proper fix is, but I found a temporary workaround replacing
img_sources = torch.from_numpy(np.array([ele['dataset_idx'] for ele in img_metas])).to(img.device)
with
img_sources = torch.from_numpy(np.array([0 for ele in img_metas])).to(img.device)
in the 2 places it's used by mmpose
. That said, I modified the config to only train on COCO, and I'm not sure my workaround would work otherwise.
Ran into the same issue, I'm guessing it has to do with
dataset_idx
being populated in the configs. I don't know what the proper fix is, but I found a temporary workaround replacingimg_sources = torch.from_numpy(np.array([ele['dataset_idx'] for ele in img_metas])).to(img.device)
with
img_sources = torch.from_numpy(np.array([0 for ele in img_metas])).to(img.device)
in the 2 places it's used by
mmpose
. That said, I modified the config to only train on COCO, and I'm not sure my workaround would work otherwise.
Hello, which file did you modify? I run into the same problem
Hi! I am trying to use ViTPose+ basic for inference using the following code:
But I get the following error: