powered by
Load an Object Detector
load_detector(model_path, model_type, device = NULL)
detector object
path to detector model file
type of model expected ie "MDV5", "MDV6", "YOLO", "ONNX"
specify to run on cpu or gpu
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