UniPose icon indicating copy to clipboard operation
UniPose copied to clipboard

Pre-trained weight on the unipose_mpii predictions looks bad

Open mukeshnarendran7 opened this issue 3 years ago • 1 comments

Have loaded the pre-trained weights and made some predictions with the unipose modeland the predictions looks off

criterion   = torch.nn.MSELoss()
optimizer   = torch.optim.Adam(model.parameters(), lr=1e-3)
model = unipose(dataset="MPII",backbone='resnet', output_stride=16)

#load weights of the model

model.load_state_dict(torch.load("/content/UniPose_MPII.pth",map_location='cpu'))
model.eval()

trfm = transforms.Compose(
                          [
                          transforms.ToTensor()                                      
                          ]
                          )
DEVICE     = "cuda" if torch.cuda.is_available() else "cpu"
img = cv2.resize(cv2.imread("/content/fed.jpg"), (513, 513))
img2 = trfm(img)[None].to(DEVICE, dtype=torch.float)

model.eval()
hmp = model(img2)

image

mukeshnarendran7 avatar Mar 10 '22 08:03 mukeshnarendran7

can you give me the pre trained weight?

lhwlqh avatar Jul 14 '25 01:07 lhwlqh