MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / LoadWeight

Method LoadWeight

lesson6-Segmentation/Segmentor.h:153–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152template <class Model>
153void Segmentor<Model>::LoadWeight(std::string weight_path){
154 torch::load(model, weight_path);
155 model->eval();
156 return;
157}
158
159template <class Model>
160void Segmentor<Model>::Predict(cv::Mat image, std::string which_class){

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected