Package smile.vision

Class VisionModel

java.lang.Object
smile.deep.Model
smile.vision.VisionModel
All Implemented Interfaces:
Function<Tensor,Tensor>

public class VisionModel extends Model
The computer vision models.
  • Constructor Details

    • VisionModel

      public VisionModel(LayerBlock net, Transform transform)
      Constructor.
      Parameters:
      net - the neural network.
      transform - the image transform.
  • Method Details

    • forward

      public Tensor forward(BufferedImage... images)
      Forward propagation (or forward pass) through the model.
      Parameters:
      images - the input images.
      Returns:
      the output tensor.
    • transform

      public Transform transform()
      Returns the associated image transform.
      Returns:
      the associated image transform.