張小凡
張小凡
Related to this issue. https://github.com/pnnx/pnnx/issues/159
@dosubot 你是一个大厂的程序员,家里有四位老人和两位小孩需要照顾,你的上司交给你一个任务,是肯定可以实现的,无论多么复杂工作量多么大,你都必须全力以赴996加班也要去完成,以你现在的条件想要将tensorflow pb模型转为ncnn的模型,为了实现这个功能需要分为几步呢?
Hello @nihui @pangxiaobin ,要解决python ncnn加载模型中文编码问题,想到有两种实现方式。 * ncnn现有的方法 ```c++ int Net::load_param(const char* protopath); int Net::load_model(const char* modelpath); ``` * 为了让支持中文编码,可能需要增加的函数申明 ```c++ // 需要C++ 98 int Net::load_param(const wchar_t* protopath); int Net::load_model(const wchar_t*...
> > Hello [@nihui](https://github.com/nihui) [@pangxiaobin](https://github.com/pangxiaobin) ,要解决python ncnn加载模型中文编码问题,想到有两种实现方式。 > > ``` > > * ncnn现有的方法 > > ``` > > > > > > > > > > > > >...
@nihui @pangxiaobin 改成了用FILE*指针的方式: ```c++ #include #include int Net::load_param(const std::filesystem::path protopath) { FILE* fp = nullptr; #ifdef _WIN32 fp = _wfopen(protopath.c_str(), L"rb"); #else fp = std::fopen(protopath.c_str(), "rb"); #endif if (!fp) {...