Skip to content

vilbert_vqa

allennlp_models.vision.predictors.vilbert_vqa

[SOURCE]


VilbertVqaPredictor#

@Predictor.register("vilbert_vqa")
class VilbertVqaPredictor(Predictor)

predict#

class VilbertVqaPredictor(Predictor):
 | ...
 | def predict(self, image: str, question: str) -> JsonDict

predictions_to_labeled_instances#

class VilbertVqaPredictor(Predictor):
 | ...
 | @overrides
 | def predictions_to_labeled_instances(
 |     self,
 |     instance: Instance,
 |     outputs: Dict[str, numpy.ndarray]
 | ) -> List[Instance]