Closed noeykan closed 1 year ago
Hi @noeykan , this doesn't seem right. Have you checked if you loaded the pretrained model successfully? PyTorch may not issue a warning even if the loading fails (e.g., file not found). Please also post your inference log.
@caizhongang Oh, I fixed this problem. It was my mistake. Because of some gpu errors from my computer, I changed the code in common/base.py as below at first and it made the random results as I posted before.
class Demoer(Base): ...
self.logger.info("Creating graph...")
model = get_model('test')
model = DataParallel(model).cuda()
# model = DataParallel(model).cuda()
model = model.cuda()
ckpt = torch.load(cfg.pretrained_model_path)
...
I thought these changes had not affected the result, but when I rolled back my modifications, I could see the right results outputted from the inference pipeline.
Thank you.
Hi,
I've tested inference with your pretrained model, but the result seems random value. As I tried to debug this, input image cropped was okay.
I've tested all pretrained models but failed.
Could you check them again?