Sungmann Cho
447b1369f5
Fix warnings on Visual Studio ( #1422 )
* Change DataReader::read()'s signature to fix warning C4267
This CL fixes lots of warning "C4267: 'initializing': conversion from
'size_t' to 'int'" in our codebase by matching DataReader::read()'s
signature to fread().
* Fix warnings C4244 and C4267 in tools/ncnnoptimize.cpp
C4244: 'initializing': conversion from 'double' to 'float',
possible loss of data
C4267: 'initializing': conversion from 'size_t' to 'int',
possible loss of data
* Fix warning C4244 in src\layer\selu.cpp
C4244: '=': conversion from 'double' to 'float', possible loss of data
* Fix warning C4244 in src\layer\cast.cpp
C4244: '=': conversion from 'double' to 'float', possible loss of data
C4244: 'return': conversion from 'float' to 'signed char', possible loss of data
* Fix warning C4244 in src\layer\psroipooling.cpp
C4244: 'initializing': conversion from 'double' to 'float',
possible loss of data
C4244: 'initializing': conversion from 'double' to 'int',
possible loss of data
6 years ago
HuSong
3cec1e6376
Fix ncnn2table coredump ( #1410 )
* fix compile error of yolov3detectionoutput layer
* fix ncnn2table coredump when [Input] layer not found in ncnn.param
6 years ago
nihuini
d8b0f28dda
optimizer eliminate orphaned memorydata
6 years ago
nihuini
5eae1b8325
always write normalize scale data, do not break optimize tool
6 years ago
nihuini
d430f1e1fe
eliminate noop pooling1x1s1
6 years ago
nihuini
af3643ed81
normalize eps mode for different training framework conventions
6 years ago
nihuini
c95e7bbb3c
onnx fuse flatten
6 years ago
nihuini
253e54351d
onnx fuse normalize, first try
6 years ago
nihuini
e5a834b299
do not fuse weight reshape
6 years ago
nihuini
66b8a7ee36
fuse onnx unsqueeze-prelu
6 years ago
chenyang
fda1c8c530
fix return of get_input_names ( #1373 )
6 years ago
Guoxia Wang
5c08ce7db9
fix Reduction Op attr bug ( #1363 )
* fix onnx2ncnn MemoryData dims problem #1330
* fix ncnn2int8 bug (see #1336 )
* fix bug that MemoryData as multi operations input
* fix ncnn2table find_blob_index_by_name data failed bug, see #1338
* fix ncnn2table find_blob_index_by_name data failed bug, see #1338 , fix change requested
* fix Reduction operation attribution bug
* fix #1363 request changes
6 years ago
nihuini
61ba8ec68e
mention the community-maintained tensorflow2ncnn tool
6 years ago
nihuini
6ce5da28a0
convert onnx pooling ceil_mode
6 years ago
Guoxia Wang
4336cc15f7
fix bug that MemoryData as multi operations input ( #1357 )
* fix onnx2ncnn MemoryData dims problem #1330
* fix ncnn2int8 bug (see #1336 )
* fix bug that MemoryData as multi operations input
* fix ncnn2table find_blob_index_by_name data failed bug, see #1338
* fix ncnn2table find_blob_index_by_name data failed bug, see #1338 , fix change requested
6 years ago
nihui
ced7bcbadc
fix eliminating noop with empty bottom or top blobs
6 years ago
nihuini
c9a9128db7
convert caffe Slice slice_dim
6 years ago
nihuini
d5d7886517
resolve onnx Split conversion with empty split attribute
6 years ago
Guoxia Wang
31c6cefc44
fix ncnn2int8 bug, see issue #1336 ( #1341 )
* fix onnx2ncnn MemoryData dims problem #1330
* fix ncnn2int8 bug (see #1336 )
6 years ago
ShuangLiu1992
3b905cb48a
fix ncnnoptimize bias term bug #1339 ( #1340 )
6 years ago
Guoxia Wang
51bca0b718
fix onnx2ncnn MemoryData dims problem #1330 ( #1331 )
6 years ago
nihuini
64333429bb
data reader wrapper, fix #1325
6 years ago
nihuini
517d1b2053
improve compability with megvii shufflenet model
6 years ago
nihuini
e8bb88830d
convert mxnet squeeze expanddims, convert onnx squeeze unsqueeze
6 years ago
nihuini
a6c60068e6
convert numpy style slice to crop
6 years ago
nihuini
009c4d9a75
convert mxnet reduce axis and keepdims, pad reflect, fix #739
6 years ago
daichuanliang
6176ada9f0
update ncnn2int8.cpp ( #1315 )
Fix compile issue with ncnn2int8
6 years ago
bindog
04b4b02324
[WIP] add reduce op support for onnx ( #1308 )
* [WIP] add reduce op support for onnx
* extend reduction to support 1,2-dim reduction and keepdims
* fix compile error
* split type to 3 flags && split keepdims to another function
6 years ago
ShuangLiu1992
396b057248
fix opencv compatibility issue with major verion > 2 for the quantisation tool ( #1302 )
* Update CMakeLists.txt
enable quant
* fix opencv compatibility issue with major higher than 2
6 years ago
bindog
53d54115a8
add split op support for onnx2ncnn ( #1299 )
6 years ago
tpoisonooo
25979c1bdb
move ncnnoptimize doc to docs directory ( #1297 )
6 years ago
nihuini
c3eea4cc0b
fuse onnx unsqueeze-batchnorm-squeeze as batchnorm
6 years ago
nihuini
87ae1e9a2a
%e in ncnnoptimize
6 years ago
nihuini
7d3ebe2d69
%g may output number without dot, stick to %e
6 years ago
nihuini
a5b6826a16
workaround duplicated op name, fusion function, fix wrong layer count when the last layer is Reshape
6 years ago
nihuini
583f0a7c2f
eliminate noop
6 years ago
Howave
50f69f1755
mxnet hardsigmoid hardswish op fusion ( #1266 )
6 years ago
nihuini
f7808b2dfc
write pad_value
6 years ago
nihuini
d67d2531ae
convert some well-known noop, printf %g to preserve precision
6 years ago
nihui
974411e358
the missing mobilenet-nobn.table
6 years ago
tpoisonooo
8dbafe7764
constraint input value to [-127, +127] ( #1258 )
* constraint input value to [-127, +127]
* keep new line at the end
6 years ago
kalcohol
8166584b54
fix image URL path ( #1255 )
6 years ago
kalcohol
054dd43f8e
Add NNIE ImageWatch Plugin natvis ( #1253 )
* rename ncnn snapshot png file
* add NNIE ImageWatch plugin and working snapshot
* add NNIE support to README.md
* fix image path
6 years ago
nihuini
56acc25df8
set QuantNet option, fix #1223
6 years ago
MambaWong
997e96a490
add swapRB flag ( #1211 )
6 years ago
MambaWong
f5004f954b
Update ncnn2int8.cpp ( #1200 )
asymmetric padding parameter for convolution and deconvolution family
6 years ago
nihui
3eb30f4cdb
write deconvolution output pad and output shape, write instancenorm weight, fix #1053 fix #1122
6 years ago
nihuini
296e0022df
deconvolution output adj and output shape
6 years ago
BUG1989
f79fa87dca
Add the readme file of quantization tools ( #1198 )
6 years ago
nihuini
0e26e3094e
autopad SAME_LOWER
6 years ago