Commit Graph

80 Commits

Author SHA1 Message Date
Evgeny Proydakov 4699b26933 Using snprintf instead of sprintf for a tools (#6554)
Signed-off-by: Evgeny Proydakov <e.proydakov@gmail.com>
2026-02-26 10:29:28 +08:00
nihui 171b9d1bba use spdx license header, copyright Tencent (#6152) 2025-07-08 11:01:29 +08:00
nihui 3181616439 treat old reduction axes param as failure 2022-02-06 21:20:54 +08:00
nihuini f02b259a15 convert some pnnx reduction family 2021-12-23 16:19:25 +08:00
nihuini f9e42d4ee4 drop fp16 and int8 mode from caffe2ncnn, ncnnoptimize and ncnn2int8 should be used instead 2021-04-26 14:18:57 +08:00
nihuini d095149f59 workaround mxnet op non-unique name issue, fix #2855 2021-04-20 16:16:05 +08:00
nihuini 5e85f447e6 convert mxnet channel padding, fix some lgtm warnings 2021-03-29 15:07:08 +08:00
Zhuo Zhang f3ac7d6261 fix mxnet2ncnn.cpp shadowed variable warning (#2442) 2020-12-15 00:09:25 +08:00
Zhuo Zhang d5d69e32a8 fix tools/mxnet/mxnet2ncnn.cpp sign-compare warning (#2394) 2020-12-05 17:22:43 +08:00
fawdlstty 1d1cb29869 Fixed compile warning due to default cast (#2201) 2020-10-13 16:23:12 +08:00
nihuini 7b3ab5024d convert to gemm layer 2020-08-18 10:57:41 +08:00
nihuini 01d9ebf115 sometimes mxnet use either scalar or array in one attribute value, #1976 2020-07-28 10:50:37 +08:00
nihui 3ef995ed1e format code style and setup restyled.io (#1840) 2020-06-13 22:17:51 +08:00
ZhangCY 8a3e9189df mxnet2ncnn support list args in attrs (#1741)
Co-authored-by: zcy6735 <zcy6735@arcsoft.com.cn>
2020-05-07 12:33:39 +08:00
mengfu188 d06606b0cd Tiny fix mxnet2ncnn tool (#1691) 2020-04-13 11:28:48 +08:00
nihui 9929d52885 less duplicated code for crop layer, slice axes starts from 0 2020-02-29 18:54:53 +08:00
Sungmann Cho ac98064e8d Fix warnings on Visual Studio (#1461)
* Fix warning C4267 in tools/ncnn2mem.cpp

C4267: 'return': conversion from 'size_t' to 'int', possible loss of data

* Fix warning C4267 in tools/mxnet/mxnet2ncnn.cpp

C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data

* Fix warning C4267 in src/layer/{eltwise|yolov3detectionoutput}.cpp

C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
2019-12-27 15:47:39 +08:00
Sungmann Cho 9bfc554bc9 Fix warnings on Visual Studio (#1431)
* Fix warnings C4244, C4267 in src/layer/yolov3detectionoutput.cpp

C4244: '=': conversion from 'int' to 'float', possible loss of data
C4244: 'initializing': conversion from 'float' to 'int', possible loss of data
C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
C4244: 'return': conversion from 'double' to 'float', possible loss of data
C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data

* Fix warnings C4244, C4267 in src/layer/yolodetectionoutput.cpp

C4244: '=': conversion from 'int' to 'float', possible loss of data
C4244: 'initializing': conversion from 'float' to 'int', possible loss of data
C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
C4244: 'return': conversion from 'double' to 'float', possible loss of data
C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data

* Fix warning C4244 in src/layer/quantize.cpp

C4244: 'initializing': conversion from 'double' to 'int', possible loss of data

* Fix warnings C4244, C4267 in src/layer/detectionoutput.cpp

C4244: '=': conversion from 'int' to 'float', possible loss of data
C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data

* Fix warning C4244 in src/layer/roipooling.cpp

C4244: 'initializing': conversion from 'double' to 'int', possible loss of data

* Fix warning C4244 in src/layer/sigmoid.cpp

C4244: '=': conversion from 'double' to 'float', possible loss of data

* Fix warning C4267 in src/layer/slice.cpp

C4267: '=': conversion from 'size_t' to 'int', possible loss of data
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data

* Fix warning C4267 in src/layer/softmax.cpp

C4244: '=': conversion from 'double' to 'float', possible loss of data

* Fix warning C4244 in src/layer/interp.cpp

C4244: '=': conversion from 'float' to 'int', possible loss of data
C4244: 'initializing': conversion from 'double' to 'int', possible loss of data

* Fix warning C4244 in src/layer/instancenorm.cpp

C4244: 'initializing': conversion from 'double' to 'float', possible loss of data

* Fix warning C4244 in src/layer/deconvolutiondepthwise.cpp

C4244: '=': conversion from 'double' to 'float', possible loss of data

* Fix warning C4244 in src/layer/convolutiondepthwise.cpp

C4244: '=': conversion from 'double' to 'float', possible loss of data

* Fix warning C4244 in src/net.cpp

C4244: 'return': conversion from '__int64' to 'int', possible loss of data
C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
C4267: 'return': conversion from 'size_t' to 'int', possible loss of data

* Fix warning C4244 in src/layer/bnll.cpp

C4244: '=': conversion from 'double' to 'float', possible loss of data

* Fix warning C4267 in src/layer/concat.cpp

C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data

* Fix warning C4267 in tools/mxnet/mxnet2ncnn.cpp

C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
C4267: '=': conversion from 'size_t' to 'int', possible loss of data
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
C4305: 'initializing': truncation from 'double' to 'float'
2019-12-24 22:58:05 +08:00
nihuini 5eae1b8325 always write normalize scale data, do not break optimize tool 2019-11-15 17:26:02 +08:00
nihuini af3643ed81 normalize eps mode for different training framework conventions 2019-11-15 14:05:58 +08:00
nihuini e8bb88830d convert mxnet squeeze expanddims, convert onnx squeeze unsqueeze 2019-10-24 11:29:14 +08:00
nihuini a6c60068e6 convert numpy style slice to crop 2019-10-23 19:43:11 +08:00
nihuini 009c4d9a75 convert mxnet reduce axis and keepdims, pad reflect, fix #739 2019-10-23 15:46:39 +08:00
nihuini 87ae1e9a2a %e in ncnnoptimize 2019-09-27 14:49:24 +08:00
nihuini 7d3ebe2d69 %g may output number without dot, stick to %e 2019-09-26 19:38:03 +08:00
nihuini a5b6826a16 workaround duplicated op name, fusion function, fix wrong layer count when the last layer is Reshape 2019-09-26 17:32:13 +08:00
Howave 50f69f1755 mxnet hardsigmoid hardswish op fusion (#1266) 2019-09-19 23:05:20 +08:00
nihuini d67d2531ae convert some well-known noop, printf %g to preserve precision 2019-09-18 16:42:46 +08:00
nihuini 296e0022df deconvolution output adj and output shape 2019-08-21 15:00:35 +08:00
nihuini 18833c9286 convert asymmetric pad parameter 2019-08-20 15:14:16 +08:00
nihuini eced73c186 convert mxnet onnx pooling count_include_pad 2019-08-19 15:22:30 +08:00
nihuini 1b910efea5 convert slice properly 2019-08-02 11:29:51 +08:00
nihuini 7dd4bccf95 convert mxnet _contrib_BilinearResize2D 2019-07-25 18:47:10 +08:00
Howave 123ca35e00 fix compile warnings (#1042) 2019-06-12 14:29:39 +08:00
nihui af950819cd convert add_n and ElementWiseSum, fix #1008 2019-06-07 15:30:46 +08:00
791136190 e2e8e1b9d7 mxnet2ncnn tool support symbol.softmax op (#938)
* [CHG]when use HybridBlock to call F.softmax,the softmax op name is "softmax"(mxnet_version:10301)

* [CHG]Remove type mismatch error when using static code detection tool
2019-04-24 17:07:12 +08:00
nihuini 1dea9fe353 more elementwise binaryop alias, convert priorbox steps param 2019-04-22 11:04:33 +08:00
nihuini f89c5b9c31 convert mxnet UpSampling, convert onnx Upsample, fix #753 2019-03-14 14:45:51 +08:00
nihuini d9301c4f59 convert mxnet crop slice step1, convert onnx slice step1, fix reduction dims 2, fix #441, fix #498, fix #519 2019-03-14 13:21:44 +08:00
nihuini 9787625e4b warn users about the old wrong softmax behavior on axis not zero 2019-03-07 17:33:24 +08:00
nihui f353a73d5e convert mxnet Pad 2018-12-15 13:32:01 +08:00
nihuini a6679ed157 more init style compability 2018-12-06 14:42:43 +08:00
nihuini ed2a24c47c handle batchnorm fix_gamma attr properly 2018-11-29 16:17:37 +08:00
nihuini c77383f623 mxnet-ssd wip ... 2018-11-29 14:58:14 +08:00
nihuini d9d7d6b6ea fix leakyrelu with default type 2018-11-28 16:50:36 +08:00
Abdel Younes a941701f98 fix: c++ warnings (#666) 2018-11-28 10:08:14 +08:00
nihuini 4837af4c25 initial effort for mxnet-ssd 2018-11-19 15:53:45 +08:00
nihuini 28b35b8c4f ShuffleChannel = Reshape + SwapAxis + Reshape 2018-08-15 14:23:07 +08:00
nihuini fd9ef5716a fix parsing inputs list in multiple lines 2018-06-11 17:54:03 +08:00
nihuini babbb604e1 fix deconvolution weight order 2018-06-01 11:07:50 +08:00