Open myboyhood opened 1 year ago
The error is mainly that the tensor size is not matched when supernet.engine
load and init.
When we multiply the three dims of semi
, we get 19500 = 65 15 20, I check 65 is specified by SuperPoint
officially. but the supernet.engine
load with tensor.volume
= 19200 (64 15 20)
I think the problem is whether 65 or 64 is right when I use supernet.engine
,
How can I fix this error?
much appreciation for any help !
Hello! I am learning
swarm_loop
package. I try to usesrc/loop_tensorrt_test.cpp
to verify using superpoint trt to detect in my image. However I got the error of tensor size mismatch.Problem generation:
python gen_wts.py
to generatesuperpoint_v1.wts
/tensorrtx/superpoint/superpoint.cpp
at line 19-20 as following:supernet.engine
.int main(int argc, char* argv[]) { if (argc < 2) { return -1; }
// SuperPointTensorRT sp_trt(engine_path, "", "", 400, 208, 0.012, true);
// cv::resize(img, img, cv::Size(400, 208));// my change std::vector local_desc;
std::vector kps;
}
tensorrt_generic.cpp
to get the following terminal outputloop_tensorrt_test: /home/wzy/vins_ws/src/super-glue-pretrained-network-cius/src/tensorrt_generic.cpp:90: bool Swarm::TensorRTInferenceGeneric::verifyEngine(): Assertion
get3DTensorVolume4(m_Engine->getBindingDimensions(tensor.bindingIndex)) == tensor.volume && "Tensor volumes dont match between cfg and engine file \n"' failed`I find
semi
19500:19200 is not match, I find 19500 = 651520 and 19200 = 641520. I do not know how to fix this error. Hope some help!!