Learn R Programming

animl (version 3.2.0)

load_detector: Load an Object Detector

Description

Load an Object Detector

Usage

load_detector(model_path, model_type, device = NULL)

Value

detector object

Arguments

model_path

path to detector model file

model_type

type of model expected ie "MDV5", "MDV6", "YOLO", "ONNX"

device

specify to run on cpu or gpu

Examples

Run this code
if (FALSE) md_py <- megadetector("/mnt/machinelearning/megaDetector/md_v5a.0.0.pt", 
                               model_type='mdv5', device='cuda:0')

Run the code above in your browser using DataLab