class_docstr: Interface for MMBT Grid for Hateful Memes.
class_docstr_tok: ["Interface","for","MMBT","Grid","for","Hateful","Memes","."]
code: def __init__(self, model: BaseModelType, config: DictConfig):
      super().__init__()
      self.model = model
      self.config = config
      self.init_processors()
  
file_path: mmf/mmf/models/interfaces/mmbt.py
imports: import os
  import tempfile
  from pathlib import Path
  from typing import Type, Union
  import torch
  import torchvision.datasets.folder
  from mmf.common.sample import Sample, SampleList
  from mmf.models.base_model import BaseModel
  from mmf.utils.build import build_processors
  from mmf.utils.download import download
  from mmf.utils.general import get_current_device
  from omegaconf import DictConfig
  from PIL import Image
  from torch import nn
label_desc: Use image node_id 1 to create a new MMBTGridHMInterface object from inherited base classes: nn with example: obj = MMBTGridHMInterface(model, config)