Open yuumiin opened 2 years ago
TableMASTER-mmocr/mmocr/apis/inference.py
I want to change the parameter in the model_inference function my code `# forward the model with torch.no_grad(): results = model(return_loss=True, **data)
but, no "text" in img_metas keys !!
img_metas result: [[{'filename': None, 'ori_shape': (857, 1501, 3), 'img_shape': (274, 480, 3), 'scale_factor': (0.31971995332555425, 0.31978680879413723), 'img_norm_cfg': {'mean': [0.5, 0.5, 0.5], 'std': [0.5, 0.5, 0.5]}, 'ori_filename': None, 'pad_shape': (480, 480, 3)}]]
help me~!!
TableMASTER-mmocr/mmocr/apis/inference.py
I want to change the parameter in the model_inference function my code `# forward the model with torch.no_grad(): results = model(return_loss=True, **data)
but, no "text" in img_metas keys !!
img_metas result: [[{'filename': None, 'ori_shape': (857, 1501, 3), 'img_shape': (274, 480, 3), 'scale_factor': (0.31971995332555425, 0.31978680879413723), 'img_norm_cfg': {'mean': [0.5, 0.5, 0.5], 'std': [0.5, 0.5, 0.5]}, 'ori_filename': None, 'pad_shape': (480, 480, 3)}]]
help me~!!