/* * Prior boxes for RetinaNet * Tomas Goldmann,2023 */ #include #include #include class PriorBox { private: std::vector> feature_maps; std::vector> min_sizes; std::vector steps; bool clip; std::vector image_size; std::string name; public: PriorBox(std::vector image_size = std::vector(), std::string phase = "train"); std::vector> forward(); }; std::vector> decode(const std::vector>& loc, const std::vector>& priors, const std::vector& variances);