public PredictionController(ILogger <PredictionController> logger) { _logger = logger; this.dB = new InMemoryLibrary(); this.clf = new OnnxClassifier(Directory.GetParent(System.IO.Directory.GetCurrentDirectory()).Parent.Parent.Parent.FullName + @"\model\resnet50-v2-7.onnx"); }
public BooksController(ILibraryDB db) { this.dB = db; }