Commit Graph

23 Commits

Author SHA1 Message Date
Jack Zhou
d95094cfe5 [Diffusion] Add C++ dpm solver (#714)
* Add BetaForAlphaBar, ConvertModelOutput, SetTimesteps, and constructor for DPMSolverMultistepScheduler

* tmp

* Add DPMSolverFirstOrderUpdate

* Add ScaleModelInput

* Add MultiStepDPMSolverSecondOrderUpdate

* add MultiStepDPMSolverThirdOrderUpdate

* Add Step

* Add FASTDEPLOY_DECL

* Add AddNoise

* Fix operator

* update

* Fix DPMSolverMultistepScheduler

* Upgrade Slice

* Fix DPMSolverFirstOrderUpdate

* remove FASTDEPLOY_DECL

* Add config for dpm solver
2022-11-30 13:41:22 +08:00
huangjianhui
312e1b097d [Other]Refactor PaddleSeg with preprocessor && postprocessor && support batch (#639)
* Refactor PaddleSeg with preprocessor && postprocessor

* Fix bugs

* Delete redundancy code

* Modify by comments

* Refactor according to comments

* Add batch evaluation

* Add single test script

* Add ppliteseg single test script && fix eval(raise) error

* fix bug

* Fix evaluation segmentation.py batch predict

* Fix segmentation evaluation bug

* Fix evaluation segmentation bugs

Co-authored-by: Jason <jiangjiajun@baidu.com>
2022-11-28 15:50:12 +08:00
Jack Zhou
d0307192f9 [Function] Add slice function (#719)
* fix math functions

* add slice function
2022-11-28 15:33:33 +08:00
Jack Zhou
129dda7809 [Functions] Add quantile function (#700)
* Add sort function

* Add isfinite function

* upgrade isinf isnan

* Add Scalar to FDTensor

* Add floor, ceil function

* add cast functions

* Update out_tmp

* Update quantile

* add gather scatter along axis

* finish quantile function

* Add quantile unittest

* refresh code style for test source code

* Add comments

* Add full function

* Add scalar to fd tensor

* Add full unittest

* Add functions headers

* move fdtensor operators to fastdeploy namespace
2022-11-28 09:51:40 +08:00
zhoushunjie
5555630dcd Add split functions 2022-11-24 09:19:28 +00:00
zhoushunjie
6e2e646422 Add cumprod function 2022-11-24 06:56:47 +00:00
zhoushunjie
12af6b4464 Add abs functions 2022-11-24 04:02:00 +00:00
zhoushunjie
a14c55069f Add linspace 2022-11-24 03:46:05 +00:00
zhoushunjie
e147dec59e Add tile unittest 2022-11-24 02:34:33 +00:00
zhoushunjie
f80775b451 Add clip function 2022-11-23 09:04:25 +00:00
zhoushunjie
1b32381201 Add sqrt, exp, round, log functions 2022-11-23 07:23:05 +00:00
zhoushunjie
5ce0fd29f8 Add maximum functions 2022-11-23 05:14:30 +00:00
Jack Zhou
de98163efa [Functions] Add +-*/ operators and reshape for FDTensor (#655)
* Add +-*/ functions

* Add same dims test case for operations

* add broadcast 0

* Add broadcast dim2 testcase

* Add broadcast dim3 and dim4 testcase

* Add +-*/ operators

* Add mixed operation

* refresh code style

* Add reshape op

* update code style
2022-11-23 11:34:02 +08:00
Jason
f2fed7959b [Other] Add namespace for functions (#538)
Add namespace for functions
2022-11-09 13:57:53 +08:00
Jason
e93bf6e35c [Other] Add FDTensor function Pad (#532)
* Add InferShape func for all the vision processors

* fix infer shape of limit short

* Fix infer shape bug of stride_pad

* revert modify of processor

* add function pad
2022-11-08 21:45:31 +08:00
Jack Zhou
70f664161f [Functions] Add fd tensor concat (#507)
* Add fd tensor concat

* fix comment
2022-11-07 10:02:42 +08:00
zhoushunjie
5147c1c750 Add fd tensor fp16 2022-10-04 02:44:24 +00:00
zhoushunjie
faf04b49a6 Add float16 tests 2022-10-02 09:21:00 +00:00
Jack Zhou
9c150f0bfb Upgrade eigen func (#253)
* Add FDTensor copy and move assignment and constructor

* Upgrade the transpose to receive the output tensor same as input tensor

* Add note

* Add realloc for FDTensor

* Support output equals to input for softmax

* Remove FDTensor::Alloc
2022-09-20 10:58:07 +08:00
Jack Zhou
391d66381f Remove eigen compliation option (#161)
Remove eigen option
2022-08-26 11:20:52 +08:00
Jack Zhou
b6247238f5 Add argmax, argmin function (#104)
* Add argmax argmin function

* Add unittest for argmax, argmin
2022-08-12 20:22:11 +08:00
Jack Zhou
5c6b3d6150 Upgrade FDASSERT (#97)
* upgrade FDASSERT

* Optimize error message of FDTensor function

* upgrade FDASSERT

Co-authored-by: Jason <jiangjiajun@baidu.com>
2022-08-11 19:42:31 +08:00
Jack Zhou
cec0d502e0 Add softmax function (#93)
* Add softmax function

* Add softmax unittest

* Add Softmax docs

* Add function directory

* Add comment for FD_VISIT_ALL_TYPES macro
2022-08-11 12:01:19 +08:00