/dports/graphics/vapoursynth-waifu2x-ncnn-vulkan/vapoursynth-waifu2x-ncnn-vulkan-r4/deps/ncnn/tools/ |
H A D | ncnnmerge.cpp | 19 static int copy_param(const char* parampath, FILE* outparamfp, int* total_layer_count, int* total_b… in copy_param() argument 22 const char* lastslash = strrchr(parampath, '/'); in copy_param() 23 const char* name = lastslash == NULL ? parampath : lastslash + 1; in copy_param() 27 FILE* fp = fopen(parampath, "rb"); in copy_param() 31 fprintf(stderr, "fopen %s failed\n", parampath); in copy_param() 102 fprintf(stderr, "read line %s failed\n", parampath); in copy_param() 180 const char* parampath = argv[i * 2 + 1]; in main() local 183 copy_param(parampath, outparamfp, &total_layer_count, &total_blob_count); in main()
|
H A D | ncnn2mem.cpp | 159 static int dump_param(const char* parampath, const char* parambinpath, const char* idcpppath) in dump_param() argument 161 FILE* fp = fopen(parampath, "rb"); in dump_param() 165 fprintf(stderr, "fopen %s failed\n", parampath); in dump_param() 172 std::string param_var = path_to_varname(parampath); in dump_param() 479 const char* parampath = argv[1]; in main() local 484 std::string parambinpath = std::string(parampath) + ".bin"; in main() 486 dump_param(parampath, parambinpath.c_str(), idcpppath); in main()
|
/dports/graphics/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521/src/ncnn/tools/ |
H A D | ncnnmerge.cpp | 19 static int copy_param(const char* parampath, FILE* outparamfp, int* total_layer_count, int* total_b… in copy_param() argument 22 const char* lastslash = strrchr(parampath, '/'); in copy_param() 23 const char* name = lastslash == NULL ? parampath : lastslash + 1; in copy_param() 27 FILE* fp = fopen(parampath, "rb"); in copy_param() 31 fprintf(stderr, "fopen %s failed\n", parampath); in copy_param() 102 fprintf(stderr, "read line %s failed\n", parampath); in copy_param() 180 const char* parampath = argv[i * 2 + 1]; in main() local 183 copy_param(parampath, outparamfp, &total_layer_count, &total_blob_count); in main()
|
H A D | ncnn2mem.cpp | 159 static int dump_param(const char* parampath, const char* parambinpath, const char* idcpppath) in dump_param() argument 161 FILE* fp = fopen(parampath, "rb"); in dump_param() 165 fprintf(stderr, "fopen %s failed\n", parampath); in dump_param() 172 std::string param_var = path_to_varname(parampath); in dump_param() 479 const char* parampath = argv[1]; in main() local 484 std::string parambinpath = std::string(parampath) + ".bin"; in main() 486 dump_param(parampath, parambinpath.c_str(), idcpppath); in main()
|
/dports/benchmarks/vkpeak/vkpeak-20210430/ncnn/tools/ |
H A D | ncnnmerge.cpp | 19 static int copy_param(const char* parampath, FILE* outparamfp, int* total_layer_count, int* total_b… in copy_param() argument 22 const char* lastslash = strrchr(parampath, '/'); in copy_param() 23 const char* name = lastslash == NULL ? parampath : lastslash + 1; in copy_param() 27 FILE* fp = fopen(parampath, "rb"); in copy_param() 31 fprintf(stderr, "fopen %s failed\n", parampath); in copy_param() 102 fprintf(stderr, "read line %s failed\n", parampath); in copy_param() 180 const char* parampath = argv[i * 2 + 1]; in main() local 183 copy_param(parampath, outparamfp, &total_layer_count, &total_blob_count); in main()
|
H A D | ncnn2mem.cpp | 159 static int dump_param(const char* parampath, const char* parambinpath, const char* idcpppath) in dump_param() argument 161 FILE* fp = fopen(parampath, "rb"); in dump_param() 165 fprintf(stderr, "fopen %s failed\n", parampath); in dump_param() 172 std::string param_var = path_to_varname(parampath); in dump_param() 479 const char* parampath = argv[1]; in main() local 484 std::string parambinpath = std::string(parampath) + ".bin"; in main() 486 dump_param(parampath, parambinpath.c_str(), idcpppath); in main()
|
/dports/misc/ncnn/ncnn-20211208/tools/ |
H A D | ncnnmerge.cpp | 19 static int copy_param(const char* parampath, FILE* outparamfp, int* total_layer_count, int* total_b… in copy_param() argument 22 const char* lastslash = strrchr(parampath, '/'); in copy_param() 23 const char* name = lastslash == NULL ? parampath : lastslash + 1; in copy_param() 27 FILE* fp = fopen(parampath, "rb"); in copy_param() 31 fprintf(stderr, "fopen %s failed\n", parampath); in copy_param() 102 fprintf(stderr, "read line %s failed\n", parampath); in copy_param() 180 const char* parampath = argv[i * 2 + 1]; in main() local 183 copy_param(parampath, outparamfp, &total_layer_count, &total_blob_count); in main()
|
H A D | ncnn2mem.cpp | 159 static int dump_param(const char* parampath, const char* parambinpath, const char* idcpppath) in dump_param() argument 161 FILE* fp = fopen(parampath, "rb"); in dump_param() 165 fprintf(stderr, "fopen %s failed\n", parampath); in dump_param() 172 std::string param_var = path_to_varname(parampath); in dump_param() 479 const char* parampath = argv[1]; in main() local 484 std::string parambinpath = std::string(parampath) + ".bin"; in main() 486 dump_param(parampath, parambinpath.c_str(), idcpppath); in main()
|
/dports/graphics/realsr-ncnn-vulkan/realsr-ncnn-vulkan-20210210/src/ncnn/tools/ |
H A D | ncnnmerge.cpp | 19 static int copy_param(const char* parampath, FILE* outparamfp, int* total_layer_count, int* total_b… in copy_param() argument 22 const char* lastslash = strrchr(parampath, '/'); in copy_param() 23 const char* name = lastslash == NULL ? parampath : lastslash + 1; in copy_param() 27 FILE* fp = fopen(parampath, "rb"); in copy_param() 31 fprintf(stderr, "fopen %s failed\n", parampath); in copy_param() 102 fprintf(stderr, "read line %s failed\n", parampath); in copy_param() 180 const char* parampath = argv[i * 2 + 1]; in main() local 183 copy_param(parampath, outparamfp, &total_layer_count, &total_blob_count); in main()
|
H A D | ncnn2mem.cpp | 79 static int dump_param(const char* parampath, const char* parambinpath, const char* idcpppath) in dump_param() argument 81 FILE* fp = fopen(parampath, "rb"); in dump_param() 85 fprintf(stderr, "fopen %s failed\n", parampath); in dump_param() 92 std::string param_var = path_to_varname(parampath); in dump_param() 401 const char* parampath = argv[1]; in main() local 406 std::string parambinpath = std::string(parampath) + ".bin"; in main() 408 dump_param(parampath, parambinpath.c_str(), idcpppath); in main()
|
/dports/graphics/realsr-ncnn-vulkan/realsr-ncnn-vulkan-20210210/src/ |
H A D | realsr.h | 20 int load(const std::wstring& parampath, const std::wstring& modelpath); 22 int load(const std::string& parampath, const std::string& modelpath);
|
H A D | main.cpp | 675 wchar_t parampath[256]; in wmain() local 679 swprintf(parampath, 256, L"%s/x4.param", model.c_str()); in wmain() 683 char parampath[256]; in wmain() local 687 sprintf(parampath, "%s/x4.param", model.c_str()); in wmain() 692 path_t paramfullpath = sanitize_filepath(parampath); in wmain()
|
H A D | realsr.cpp | 76 int RealSR::load(const std::wstring& parampath, const std::wstring& modelpath) in load() argument 78 int RealSR::load(const std::string& parampath, const std::string& modelpath) in load() 83 FILE* fp = _wfopen(parampath.c_str(), L"rb"); in load() 86 fwprintf(stderr, L"_wfopen %ls failed\n", parampath.c_str()); in load() 105 net.load_param(parampath.c_str()); in load()
|
/dports/graphics/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521/src/ |
H A D | waifu2x.h | 20 int load(const std::wstring& parampath, const std::wstring& modelpath); 22 int load(const std::string& parampath, const std::string& modelpath);
|
H A D | main.cpp | 749 wchar_t parampath[256]; in wmain() local 753 swprintf(parampath, 256, L"%s/scale2.0x_model.param", model.c_str()); in wmain() 758 swprintf(parampath, 256, L"%s/noise%d_model.param", model.c_str(), noise); in wmain() 763 swprintf(parampath, 256, L"%s/noise%d_scale2.0x_model.param", model.c_str(), noise); in wmain() 767 char parampath[256]; in wmain() local 771 sprintf(parampath, "%s/scale2.0x_model.param", model.c_str()); in wmain() 776 sprintf(parampath, "%s/noise%d_model.param", model.c_str(), noise); in wmain() 781 sprintf(parampath, "%s/noise%d_scale2.0x_model.param", model.c_str(), noise); in wmain() 786 path_t paramfullpath = sanitize_filepath(parampath); in wmain()
|
H A D | waifu2x.cpp | 38 int Waifu2x::load(const std::wstring& parampath, const std::wstring& modelpath) in load() argument 40 int Waifu2x::load(const std::string& parampath, const std::string& modelpath) in load() 53 FILE* fp = _wfopen(parampath.c_str(), L"rb"); in load() 56 fwprintf(stderr, L"_wfopen %ls failed\n", parampath.c_str()); in load() 75 net.load_param(parampath.c_str()); in load()
|
/dports/misc/ncnn/ncnn-20211208/tools/pnnx/src/ |
H A D | ir.h | 204 int load(const std::string& parampath, const std::string& binpath); 205 int save(const std::string& parampath, const std::string& binpath); 209 int ncnn(const std::string& parampath, const std::string& binpath, const std::string& pypath);
|
H A D | ir.cpp | 508 int Graph::load(const std::string& parampath, const std::string& binpath) in load() argument 510 std::ifstream is(parampath, std::ios::in | std::ios::binary); in load() 616 int Graph::save(const std::string& parampath, const std::string& binpath) in save() argument 618 FILE* paramfp = fopen(parampath.c_str(), "wb"); in save() 621 fprintf(stderr, "fopen %s failed\n", parampath.c_str()); in save() 1760 int Graph::ncnn(const std::string& parampath, const std::string& binpath, const std::string& pypath) in ncnn() argument 1762 FILE* paramfp = fopen(parampath.c_str(), "wb"); in ncnn() 1765 fprintf(stderr, "fopen %s failed\n", parampath.c_str()); in ncnn() 1988 fprintf(pyfp, " net.load_param(\"%s\")\n", parampath.c_str()); in ncnn()
|
/dports/benchmarks/vkpeak/vkpeak-20210430/ncnn/benchmark/ |
H A D | benchncnn.cpp | 96 char parampath[256]; in benchmark() local 97 sprintf(parampath, MODEL_DIR "%s.param", comment); in benchmark() 98 net.load_param(parampath); in benchmark()
|
/dports/graphics/realsr-ncnn-vulkan/realsr-ncnn-vulkan-20210210/src/ncnn/benchmark/ |
H A D | benchncnn.cpp | 96 char parampath[256]; in benchmark() local 97 sprintf(parampath, MODEL_DIR "%s.param", comment); in benchmark() 98 net.load_param(parampath); in benchmark()
|
/dports/graphics/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521/src/ncnn/benchmark/ |
H A D | benchncnn.cpp | 96 char parampath[256]; in benchmark() local 97 sprintf(parampath, MODEL_DIR "%s.param", comment); in benchmark() 98 net.load_param(parampath); in benchmark()
|
/dports/misc/ncnn/ncnn-20211208/benchmark/ |
H A D | benchncnn.cpp | 96 char parampath[256]; in benchmark() local 97 sprintf(parampath, MODEL_DIR "%s.param", comment); in benchmark() 98 net.load_param(parampath); in benchmark()
|
/dports/graphics/vapoursynth-waifu2x-ncnn-vulkan/vapoursynth-waifu2x-ncnn-vulkan-r4/deps/ncnn/benchmark/ |
H A D | benchncnn.cpp | 96 char parampath[256]; in benchmark() local 97 sprintf(parampath, MODEL_DIR "%s.param", comment); in benchmark() 98 net.load_param(parampath); in benchmark()
|
/dports/graphics/vapoursynth-waifu2x-ncnn-vulkan/vapoursynth-waifu2x-ncnn-vulkan-r4/src/ |
H A D | waifu2x.hpp | 16 … int precision, int prepadding, const std::string& parampath, const std::string& modelpath);
|
H A D | waifu2x.cpp | 49 int precision, int prepadding, const std::string& parampath, const std::string& modelpath) : in Waifu2x() argument 59 net.load_param(parampath.c_str()); in Waifu2x()
|