Meta Byte Track
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vision.cpp 524B

12345678910111213
  1. #include "cocoeval/cocoeval.h"
  2. PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
  3. m.def("COCOevalAccumulate", &COCOeval::Accumulate, "COCOeval::Accumulate");
  4. m.def(
  5. "COCOevalEvaluateImages",
  6. &COCOeval::EvaluateImages,
  7. "COCOeval::EvaluateImages");
  8. pybind11::class_<COCOeval::InstanceAnnotation>(m, "InstanceAnnotation")
  9. .def(pybind11::init<uint64_t, double, double, bool, bool>());
  10. pybind11::class_<COCOeval::ImageEvaluation>(m, "ImageEvaluation")
  11. .def(pybind11::init<>());
  12. }