求问如何用python加载net.param.bin和net.bin两个文件呢?加载后如何对网络进行输入以及获取输出呢?有个例子可以参考吗?多谢了!!!
x8diyxa71#
see https://github.com/Tencent/ncnn/blob/master/python/ncnn/model_zoo/yolov5.py#L89 and https://github.com/Tencent/ncnn/blob/master/python/tests/test_net.py#L25
stszievb2#
不行哎,这两个例子,都是加载.param和.bin的,不是加载net.param.bin和net.bin
pvcm50d13#
net.load_param_bin(os.path.join(root_path, "net.param.bin")) net.load_model(os.path.join(root_path, "net.bin"))
3条答案
按热度按时间x8diyxa71#
see https://github.com/Tencent/ncnn/blob/master/python/ncnn/model_zoo/yolov5.py#L89 and https://github.com/Tencent/ncnn/blob/master/python/tests/test_net.py#L25
stszievb2#
see https://github.com/Tencent/ncnn/blob/master/python/ncnn/model_zoo/yolov5.py#L89 and https://github.com/Tencent/ncnn/blob/master/python/tests/test_net.py#L25
不行哎,这两个例子,都是加载.param和.bin的,不是加载net.param.bin和net.bin
pvcm50d13#