ncnn icon indicating copy to clipboard operation
ncnn copied to clipboard

No example code for DataReader with Python?

Open JeremyRand opened this issue 2 years ago • 1 comments

As far as I can tell, there's no Python code in the examples or tests folder that utilizes the DataReader API. This is unfortunate, both from a test coverage perspective and from a documentation perspective. Could an example program be added that shows how to use the DataReader API from Python? (I'm most interested in feeding ncnn a model that's stored in a Python bytes, but other examples would certainly be welcome too.)

JeremyRand avatar Aug 26 '23 01:08 JeremyRand

@JeremyRand Maybe you can use load_param_mem/load_model_mem to load param/model from Python bytes.

freespys avatar Jan 27 '24 03:01 freespys

@JeremyRand Did you find any example to see how to read a model from bytes?

MrGolden1 avatar Jul 08 '24 12:07 MrGolden1