class_docstr: Configuration to construct EfficientViT model.
  
  Model weights can be loaded from a checkpoint URL or local path.
  The model weights are hosted on HuggingFace's model hub: https://huggingface.co/kornia.
  
  Args:
      checkpoint: URL or local path of model weights.
class_docstr_tok: ["Configuration","to","construct","EfficientViT","model",".","Model","weights","can","be","loaded","from","a","checkpoint","URL","or","local","path",".","The","model","weights","are","hosted","on","HuggingFace","'s","model","hub",":","https",":","\/\/huggingface.co\/kornia",".","Args",":","checkpoint",":","URL","or","local","path","of","model","weights","."]
docstr: Return a configuration object from a pre-trained model.
  
  Args:
      model_type: model type, one of :obj:`"b1"`, :obj:`"b2"`, :obj:`"b3"`.
      resolution: input resolution, one of :obj:`224`, :obj:`256`, :obj:`288`.
docstr_tok: ["Return","a","configuration","object","from","a","pre-trained","model",".","Args",":","model_type",":","model","type",",","one","of",":","obj",":","`","``","b1","''","`",",",":","obj",":","`","``","b2","''","`",",",":","obj",":","`","``","b3","''","`",".","resolution",":","input","resolution",",","one","of",":","obj",":","`","224","`",",",":","obj",":","`","256","`",",",":","obj",":","`","288","`","."]
code: def from_pretrained(
      cls,
      model_type: Literal["b1", "b2", "b3"],
      resolution: Literal[224, 256, 288],
  ) -> EfficientViTConfig:
      """Return a configuration object from a pre-trained model.
  
      Args:
          model_type: model type, one of :obj:`"b1"`, :obj:`"b2"`, :obj:`"b3"`.
          resolution: input resolution, one of :obj:`224`, :obj:`256`, :obj:`288`.
      """
      return cls(
          checkpoint=_get_base_url(
              model_type=model_type, resolution=resolution
          )
      )
  
file_path: kornia/kornia/contrib/models/efficient_vit/model.py
imports: from __future__ import annotations
  from dataclasses import dataclass, field
  from typing import Literal
  import torch
  from kornia.contrib.models.base import ModelBase
  from kornia.contrib.models.efficient_vit import backbone
  from kornia.core import Tensor
label_desc: Use image node_id 1 for calling the EfficientViTConfig obj's underlying member method code with example usage: obj.from_pretrained(cls, model_type, resolution) and returns: cls