class_docstr: SVHN dataset from `"The Street View House Numbers (SVHN) Dataset"
  <http://ufldl.stanford.edu/housenumbers/>`_.
  
  .. image:: https://doctr-static.mindee.com/models?id=v0.5.0/svhn-grid.png&src=0
      :align: center
  
  >>> from doctr.datasets import SVHN
  >>> train_set = SVHN(train=True, download=True)
  >>> img, target = train_set[0]
  
  Args:
  ----
      train: whether the subset should be the training one
      use_polygons: whether polygons should be considered as rotated bounding box (instead of straight ones)
      recognition_task: whether the dataset should be used for recognition task
      **kwargs: keyword arguments from `VisionDataset`.
class_docstr_tok: ["SVHN","dataset","from","`","``","The","Street","View","House","Numbers","(","SVHN",")","Dataset","''","<","http",":","\/\/ufldl.stanford.edu\/housenumbers\/",">","`","_",".","..","image",":",":","https",":","\/\/doctr-static.mindee.com\/models","?","id=v0.5.0\/svhn-grid.png","&","src=0",":","align",":","center",">",">",">","from","doctr.datasets","import","SVHN",">",">",">","train_set","=","SVHN","(","train=True",",","download=True",")",">",">",">","img",",","target","=","train_set","[","0","]","Args",":","--","--","train",":","whether","the","subset","should","be","the","training","one","use_polygons",":","whether","polygons","should","be","considered","as","rotated","bounding","box","(","instead","of","straight","ones",")","recognition_task",":","whether","the","dataset","should","be","used","for","recognition","task","*","*","kwargs",":","keyword","arguments","from","`","VisionDataset","`","."]
code: def extra_repr(self) -> str:
      return f"train={self.train}"
  
file_path: doctr/doctr/datasets/svhn.py
imports: import os
  from typing import Any, Dict, List, Tuple, Union
  import h5py
  import numpy
  from tqdm import tqdm
  from .datasets import VisionDataset
  from .utils import convert_target_to_relative, crop_bboxes_from_image
label_desc: Use image node_id 2 for calling the SVHN obj's underlying member method code with example usage: obj.extra_repr() and returns: str, self