Граф коммитов

64 Коммитов

Автор SHA1 Сообщение Дата
Wenbing Li c3379ecb6b
fix the build for mobile packaging (#843)
* fix the build for mobile packaging

* update the cmake file as well

* more fixing on dlib related ops

* release the iOS cmake version constraint

* upgrade cmake in Linux CUDA build

* Update Dockerfile.ubuntu_cuda11_8_tensorrt8_6 for typo

* Update ios_packaging.yml for Azure Pipelines

* update the dlib versoin

* update all cases of cmake version

* update the comment for dlb cmake
2024-11-17 20:09:36 -08:00
Wenbing Li e19c0894ec
Fix CUDA CI build failures (#824) 2024-10-11 16:08:44 -07:00
Wenbing Li 176c1d0138
Support the Unigram tokenizer kind from sentencepiece library (#811)
* initial commit

* Ugm vocab loaded is good

* test passed

* fixes unit test on win32

* finish the parity check

* code refinement

* code refinement for review
2024-09-19 15:46:13 -07:00
Scott McKay 9164f54e5d
Don't disable vision operators in a catalyst build. (#805)
* Don't disable vision operators in a catalyst build.

* Patch to exclude NSImage on Mac-catalyst as it's not supported.
2024-09-10 08:58:09 +10:00
Wenbing Li 620050fbe0
reimplement resize cpu kernel for image processing (#768)
* reimplement resize cpu kernel for image processing

* accuracy fixing and code refinement

* fix the build issues

* fix Linux build issue

* more fixings

* Fix the pipeline issue

* fix the ci script

* try to fix CUDA machine pool
2024-07-23 15:40:52 -07:00
Wenbing Li 38a3d85f8f
switch cmake cmp0169 flag to new (#762)
* switch cmake cmp0169 flag to new

* the missing spm code.

* more refinement on cmake build targets

* Update ci.yml

* Update ci.yml

* update the jpg files after using libjpeg instead of libjpeg-turbo

* exclude cutlass too

* upgrade the protobuf library to be consistent with ORT

* update the protoc generated files

* use the right patch name

* Update cutlass.cmake
2024-07-15 23:28:49 -07:00
Wenbing Li 3b275b16bc
Upgrade pybind11 2.12 to support both numpy 1.x and 2.x (#750) 2024-06-20 15:18:17 -07:00
Wenbing Li cbed8fd575
Add a generic image processor and its C API (#745)
* Add a generic image processor

* add more tests

* Fix the test failures

* Update runner.hpp
2024-06-20 10:53:49 -07:00
Wenbing Li 2f9595af74
Fix the pipeline breaks dues to the MSVC 19.40 and numpy 2.0 release (#747)
* dd "-allow-unsupported-compiler" flags to Windows CUDA flags

inspired by this PR: https://github.com/microsoft/onnxruntime/pull/21004

* switch to cmake command line

* handle the issues caused by the latest MSVC release

* correct the typo

* correct the parameter

* try one dash again

* use the installed cmake

* use cmake standalone installation firstly

* use the standalone cmake in win32 python too

* fix it more

* one more try

* fix the MacOS pipeline issue

* fix the pip command line
2024-06-17 16:58:11 -07:00
Wenbing Li ca433cbea7
Refactor the unit tests and cmake build script (#726)
* refine the build script

* complete the unit tests.

* remove the commented code
2024-05-30 14:16:14 -07:00
Scott McKay a1285d8f36
Fix CG warnings. (#731)
- update protobuf version being used by sentencepiece and the java tests
- ignore unused language bindings from protobuf and triton
- specify the CG config file with ignored directories where required

Fix cgmanifest.json
- 'git' entries require a commit hash not version
- use 'other' for opencv third party code that is included directly in the opencv repo
  - the path isn't a valid repositoryUrl value to be provided as a 'git' entry
- update version numbers/commit hashes to match the latest code

Co-authored-by: Sayan Shaw <52221015+sayanshaw24@users.noreply.github.com>
2024-05-29 07:47:55 +10:00
Wenbing Li 311dd35401
Add ImageProcessor for Multimodel model Pre-processing (#715)
* only keep the image decoder from opencv

* initial build

* refine the code

* Add clear functions

* Update CMakeLists.txt

* Update opencv.cmake

* change the output type to float

* get the result

* align image-process with original Python

* move the LoadRawImages into library

* fix the calculation error

* fix the pipeline build issue

* fix the build breaks in ci pipeline

* support json configuration file and refactor the code.
2024-05-15 14:35:14 -07:00
cao lei e645cdab8d
Introduce flash attention and cutlass library (#708)
* refactor cuda ops, remove contrib folder

* introduce flash attention and cutlass

* resolve comments

---------

Co-authored-by: Lei Cao <leca@microsoft.com@onnxruntime-a10.bxgbzpva45kedp3rhbsbit4phb.jx.internal.cloudapp.net>
2024-05-05 22:52:28 -07:00
Wenbing Li a8bce4328b
Add the tokenizer C ABI (#693)
* initial checkins

* fix the selectedops build failures

* add the tokenization implementation

* update the windows DEF file for c abi in cmake file

* fix the build on linux

* fix some warnings and remove the unused code

* initial import of unit tests from tfmtok

* add streaming API support

* fix the merges loading issues

* complete export from tfmtok - needs input id fixing

* fix the unit test failures.

* fix all unit test failure

* refactor streaming code

* remove the unused code

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2024-04-29 16:45:49 -07:00
Wenbing Li 646462790b
Refactor the header file directory and integrate the eager tensor implementation (#689)
* refactor the header file in include folder

* fix the basic-token eager unit test case

* a more flexible way to handle string tensor shape.

* fix the unit test path issue

* remove the multi-inherits to avoid issue during pointer casting

* add api cmake build support

* undo some temporary changes

* code refinement

* fix variadic arg

* only expose the context for ort version >= 17

* fix a shape bug

* fix the cuda build issue

* change ifdef condition of GetAllocator

* finalize the ort c abi wrapper file name

* fix the iOS build break

* align gtest version with triton

* Update ext_apple_framework.cmake for iOS header files

---------

Co-authored-by: Cheng Tang <chenta@a100.crj0ad2y1kku1j4yxl4sj10o4e.gx.internal.cloudapp.net>
2024-04-17 12:58:19 -07:00
Rachel Guo fcee38ff68
Add macos platform suppport to onnxruntime-extensions-c pod (#622)
* Squashed commit of the following:

commit 0bd8a9bd49b2bddae3aa0e6c61406e3fb20e011d
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 16:55:29 2023 -0800

    remove #Preview

commit ac2ecdc696d06d579594834a0ffcc01613bd3422
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 15:29:36 2023 -0800

    fix podfile

commit 24bb619fb311f64e28fe3bc94c44912d261ec0bc
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 15:27:57 2023 -0800

    use pre-release version pod now

commit 9e227da06fe29ba01aef1d39a40712fd5dfd9dfc
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 14:09:41 2023 -0800

    update sed

commit 6b9651d4d540845af441bc6cf1d45e1561ec967e
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 13:14:46 2023 -0800

    minor fix

commit 26472d072e2147cd5d92fd6e02dfa182722e109f
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 12:08:42 2023 -0800

    fix pod arch path

commit ba0237e3dd83bed706060969f4bd206ede68fecf
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 11:13:51 2023 -0800

    update yml files

commit 1d91e17743594c28d3030089afae2578daaff848
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 10:25:24 2023 -0800

    add script to substitute podspec file source

commit 248effa32e08cf08c6268ba8ac81ce9bec2b940d
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Thu Dec 14 07:33:21 2023 -0800

    fix pod and update artifacts path

commit 7dfed33706f9e8772126eb78f551cc2110011e64
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Thu Dec 14 01:07:43 2023 -0800

    update

commit 834b03fa69faebc2c7cd948287f870a3f83304a6
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Thu Dec 14 00:07:04 2023 -0800

    update directory name

commit ac46342bb65d4b670b90c4685d6b0d47273edeb5
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 23:17:28 2023 -0800

    format

commit 1a10611b28e16cf05e9c91b19eff600e401dde84
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 23:16:24 2023 -0800

    copyrights comments and fix .yml format

commit 431682ef154ab93e68a6d099e0604d3a0d7fd804
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 23:05:39 2023 -0800

    add macos testing target in the app and testing ci updates

commit dcd0f302b3f0101584a16b91ef5a81559b22cb5a
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 14:17:28 2023 -0800

    update opencv.cmake again

commit 28b083c5d39fa743101b30e513f28bef7a82f24b
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 11:59:59 2023 -0800

    minor fix

commit d80acdad8583217ec06013f270732df2d8db62b5
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 11:26:49 2023 -0800

    add zlib to build from source option and minor update

commit dfd37effec13806ce30ddc5ed76dacefdfbc13f2
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 19:48:40 2023 -0800

    update podspec.template file

commit b227c2c196216aef6a05ba58254dedd1bcdcac60
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 19:26:40 2023 -0800

    comment out lint pod for now

commit d4bd488006e9d0b25ee01cb7c8447ec2bda620bd
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 18:46:38 2023 -0800

    fix podspec.template

commit a477470a3e63b5dd1966d8a943696df887859dd8
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 15:45:04 2023 -0800

    minor update

commit a07299decdfc10e7c2e96bd77ee49f97afbe5bd4
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 11:28:51 2023 -0800

    clean

commit a83642fbe309bd3c23f93c7aa00801f37cd8a0a3
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 11:26:50 2023 -0800

    fix merging framework_info.json process

commit 02980feff9a28a3099906c66a11df1f1d1ecf071
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 10:22:42 2023 -0800

    add step for checking the framework_info.json file contents

commit ee224e9e5948a6484dff8378697a71cae07e0801
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 09:35:32 2023 -0800

    update to xcframework_info.json

commit 96e13627c2f3c9802d90dd5afe4d96b69d76e012
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 01:06:36 2023 -0800

    add changes for macosx build for extensions pod

* address pr comments

* add back supported archs

* update build.py

* reorganize source code avoid duplicates

* add minor note

* exclude macos for ci.yml

* update ci.yml

* address pr comments

* update

* update

* Update tools/ios/assemble_pod_package.py

Co-authored-by: Scott McKay <skottmckay@gmail.com>

---------

Co-authored-by: rachguo <rachguo@rachguos-Mac-mini.local>
Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net>
Co-authored-by: Scott McKay <skottmckay@gmail.com>
2023-12-19 18:26:12 -08:00
Wenbing Li 5f5687ce4a
Exclude some build targets to avoid the failure in Official pipeline. (#549)
* Exclude some build targets to avoid the failure in Official pipeline.

* Update onebranch-windows-build-stage.yml
2023-08-30 10:19:56 -07:00
RandySheriffH d853d31fc1
Document azure ops. (#530)
* doc ops (#529)

* Try and make CIs pass with Azure ops enabled by default.
Misc. other cleanups

* Fix some CI issues.
Cleanups some bits and pieces.

* Fix a couple of issues.

* Fix arg to build.bat

* Increase warning in triton client build to make binskim happy (hopefully).

* Try patching the warning level in the triton grpc branch as well. Shouldn't matter but...

* Run triton patch command for windows as well.

* Add patch.exe directly so windows builds work.

* override auth gen for AOAI

* fix build

* switch to windows-static

* update model for azure chat

* document triton invoker

* doc chat endpoint

* document triton invoker

* format

* format

* format

---------

Co-authored-by: Scott McKay <Scott.McKay@microsoft.com>
Co-authored-by: Randy Shuai <rashuai@microsoft.com>

* address comments

* move doc sect

* typo

* typo

---------

Co-authored-by: Scott McKay <Scott.McKay@microsoft.com>
Co-authored-by: Randy Shuai <rashuai@microsoft.com>
2023-08-17 14:12:02 -07:00
Scott McKay 3b947b5580
Minor build and test setup fixes (#523)
* Build fixes
- zlib needs to come from vcpkg if azures ops are being built and opencv isn't enabled
- set the IR version to 8 for some of the azure ops test models so they can be tested when ORT 1.14 is used
- pass through new ort version value so that a consistent version is used to a) pull the ORT package for the c++ unit tests and b) disable azure ops if ORT version is too old.
* Update to automatically chain package to avoid build errors during the install if cmake runs commands in parallel
* Define simplified ORT_FILE for older ORT versions
2023-08-17 15:09:31 +10:00
Scott McKay 4842e9d6ae
Make CIs pass with Azure ops enabled by default. (#518)
* Make CIs pass with Azure ops enabled by default.
2023-08-12 17:45:59 +10:00
Scott McKay cd416e2ab4
Fix LNK4098 warning from sentencepiece forcibly changing the build flags (#516)
* Fix LNK4098 warning from sentencepiece forcibly changing the build flags.

> LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library

* Use CMAKE_MSVC_RUNTIME_LIBRARY to determine whether /MT should be used.
2023-08-10 17:03:02 +10:00
Scott McKay 2bde82fce9
Refactor setup for Azure ops. Add Android support. (#507)
* Refactor setup for Azure ops to try and make common things more re-usable, and for the actual ops to simply layer in the specific input/output constraints for that type of request.

Currently builds on Linux, Windows (x64 only) and Android

Android requires a manual pre-build of openssl and curl.

Linux requires a manual pre-install of openssl.

Windows currently only works for x64. Other targets need the triplet adjusted.

* Address PR comments

* Fix could of android build warnings.

* Update .gitignore to remove old path

* Fix build break from merge
2023-08-08 19:54:30 +10:00
RandySheriffH 06d5a8d781
Enable AzureOp packaging (#495)
* generalize azure op

* implement text endpoint

* add parameter to linux whl pipeline

* tune grammer

* 2

* 3

* 4

* 5

* 6

* 7

* 9

* 10

* 11

* 12

* 13

* 14

* 15

* 16

* cancel azure build in ci

* tune cpu tensor check

* try mem name

* address comments

* fix path

* clean env

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>
2023-07-20 14:16:08 -07:00
RandySheriffH 27132ced71
Implement azure invokers (#487)
* Implement azure invokers (#486)

* draft azure ops

* migrate triton client

* AzureAudioInvoker works

* triton client builds

* triton invoker works

* limit version

* restore setup.py

* limit ort version

* upgrade version

* pip install cmake

* add ut

* promote ort header version to 1.15.1

* register as cpu op

* limit triton invoker to 1.14 and newer

* remove test

* install rapidjson

* install dep

* sudo install

* install version script

* print err msg

* fix pipeline

* disable from web assembly

* install cmake

* Fix pipelines (#479)

* 1

* 2

* 3

* 4

* 5

* 6

* 7

* 8

* 9

* 10

* 11

* 12

* 13

* 14

* 15

* 16

* 17

* 18

* 19

* 20

* 21

* 22

* 23

* 24

* 25

* 26

* 27

* 28

* 29

* 30

* 31

* 32

* 33

* 34

* 35

* 36

* 37

* 38

* 39

* 40

* 41

* 42

* 43

* 44

* 45

* 46

* 47

* 47

* 48

* 49

* 50

* 51

* 52

* 53

* 54

* 55

* 56

* 57

* 58

* 59

* 60

* 61

* 62

* 62

* 63

* 64

* 65

* 66

* 67

* 68

* 69

* 70

* 71

* 72

* 73

* 74

* 75

* 76

* 77

* 78

* 79:

* 80:

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>

* fix pipelines (#481)

* 1

* 2

* 3

* 4

* 5

* 6

* 7

* 8

* 9

* 10

* 11

* 12

* 13

* 14

* 15

* 16

* 17

* 18

* 19

* 20

* 21

* 22

* 23

* 24

* 25

* 26

* 27

* 28

* 29

* 30

* 31

* 32

* 33

* 34

* 35

* 36

* 37

* 38

* 39

* 40

* 41

* 42

* 43

* 44

* 45

* 46

* 47

* 47

* 48

* 49

* 50

* 51

* 52

* 53

* 54

* 55

* 56

* 57

* 58

* 59

* 60

* 61

* 62

* 62

* 63

* 64

* 65

* 66

* 67

* 68

* 69

* 70

* 71

* 72

* 73

* 74

* 75

* 76

* 77

* 78

* 79:

* 80:

* 81

* 82

* 83

* 84

* 85

* 86

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>

* test as cpu op

* add ut

* add ut

* move cond

* tune ut

* tune pipeline

* promote to ort 141

* reset header version

* restore cmake

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>

* trim changes

* revert req txt

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>
2023-07-10 10:07:33 -07:00
Wenbing Li a6012b383e
support vc runtime static linkage (#472)
* support vc runtime static linkage

* typo

* add unit test

* Update ci.yml
2023-06-20 16:40:29 -07:00
Wenbing Li 1c04e95bda
upgrade all dependency versions (#466)
* release the dependency package version

* upgrade the dependency versions

* more fixing for 3.11

* Update ci.yml

* upgrade torch version in MacOS

* fix torch version in MacOS

* upgrade Python support versions

* pybind11 switch URL mode

* more URL modes
2023-06-03 20:09:41 -07:00
JiCheng b7b8816dab
build for mac M1 (#430) 2023-05-07 09:15:55 +08:00
Wenbing Li b5dce955f0
Add an audio decoder custom op for whisper end-to-end processing (#385)
* evaluate the audio decoder library

* MP3 Decoder

* rename it to test_audio_codec

* add the audio decoder to whisper model

* whisper end-to-end draft

* fix the mp3 decoder

* Running with ONNX models

* Add more audio format supports

* refine the end-to-end script

* Update operators/audio/audio_decoder.hpp

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>

* Update operators/audio/audio_decoder.hpp

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>

* Update operators/audio/audio_decoder.hpp

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>

* some fixings of comments and more test cases.

* changes for review comments.

* Update audio_decoder.hpp

* Update audio_decoder.hpp

* code refinement

* Update operators/audio/audio_decoder.hpp

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>

---------

Co-authored-by: Sayan Shaw <52221015+sayanshaw24@users.noreply.github.com>
Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-04-11 14:47:10 -07:00
Edward Chen c0260ec704
Use dependency name 'nlohmann_json' which is the same name that ORT uses. (#393) 2023-04-10 16:49:47 -07:00
Wenbing Li 9cd1284da8
Pre and Post processing example for openAI Whisper model (#380)
* add a stft-norm custom op for log-mel spectrum.

* undo the debug change

* Support ONNX standard STFT op signature.

* Add a unit test onnx STFT compatible mode.

* add whisper pre-/post- processing example

* Update dlib.cmake

* undo test code changes

* Update setup.cfg

* update the end2end example with STFT op
2023-03-30 13:44:50 -07:00
Wenbing Li 3b0bd66e9e
Add a bbpe tokenizer decoder for Whisper model (#376)
* initial PR

* add the attributes for op

* cmake update

* add the missing symbol

* add a unit test case

* fix the unit test

* fix some corner case.

* format Python code with autopep8
2023-03-08 15:00:01 -08:00
Wenbing Li 1445b6fdb7
Fix the current valid binSkim error and warnings. (#363)
* add qspectre check

* more fixing

* partially enable /sdl scan

* Update CMakeLists.txt

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>

---------

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-02-22 09:33:04 -08:00
Wenbing Li 00b54739c5
security warning of sentencepiece (#358)
* security warning of sentencepiece

* update cmake option policy

* option set

* revert abseil change

* wrong patch name

* upgrade protobuf to 3.20.2, align with ORT 1.14

* weird patch issue

* code refinement

* typo

* Update version.txt

* undo version change

* doc refinement

* one more missing

* is ==

* disaable some case running under ort 1.13

* Update cmake/externals/sentencepieceproject.cmake

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>

* Update cmake/externals/sentencepieceproject.cmake

Co-authored-by: Scott McKay <skottmckay@gmail.com>

* Update cmake/externals/sentencepieceproject.cmake

Co-authored-by: Scott McKay <skottmckay@gmail.com>

* Update cmake/externals/sentencepieceproject.cmake

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>

* review update

* set default warning level 3 to meet some requirement

---------

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
Co-authored-by: Scott McKay <skottmckay@gmail.com>
2023-02-16 20:50:11 -08:00
Scott McKay 95ac242e7c
Fix sentencepiece build error (#355)
* Combined ORT + ort-ext build for Android fails due to protobuf mismatch. Move the setting of SPM_USE_BUILTIN_PROTOBUF to before the populate to fix.

* Set CACHE INTERNAL as well to avoid issue with CMP0077.
2023-02-01 13:42:26 -08:00
Scott McKay c0555471df
Fix PreFast warning (#350)
* Fix PreFast warning
* Add gsl for checking narrowing conversions. Copy setup for usage in a build with exceptions disabled from ORT
2023-01-24 12:11:00 +10:00
Edward Chen 81e7799c69
Patch sentencepiece to enable iOS build. (#335) 2022-12-21 09:57:32 -05:00
Scott McKay 5d53f91f11
Minor opencv tweaks (#316)
* Separate ops in operators/cv2 that do and do not require codecs so they're easier to include/exclude from a build.
Remove jpeg2000 from opencv file formats. It costs 1MB and is (afaict) not a common format.
Add ability to enable/disable cv2 ops to gen_selectedops.py.

* Remove super resolution pre/post process ops that are no longer needed.

* Replace super resolution e2e tutorial

Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
2022-12-20 13:47:17 +10:00
Edward Chen 9ab7e614da
Add infrastructure to build iOS static framework and xcframework (#320)
Initial changes for adding an iOS package.

Add infrastructure to build iOS static framework, xcframework, and CocoaPods package.
Add test project that uses package.
Add package build and test to CI pipeline.
2022-12-07 10:37:05 -08:00
Scott McKay 1cab9711ff
Starter changes for supporting pre/post processing for vision models. (#312)
* Initial changes for supporting mobilenet and superresolution.
- Script to update model with pre/post processing
- custom ops for decode/encode
  - user just has to provide jpg or png bytes
  - superresolution can return the updated image in jpg or png
- models for testing

Updated cmake setup to enable building of the vision pre/post processing ops
  - opencv2 is treated as an internal dependency rather than the mechansim for selecting which operators to include.

* Add extra check in decode.
2022-11-24 07:40:56 +10:00
Sayan Shaw 23201d84ba
Updated json and re2 version as per ort req (#305)
Co-authored-by: sayanshaw <sayanshaw@microsoft.com>
2022-10-14 17:33:53 -07:00
shaahji 78d8dd5705 OpenCV Image Decoder & SuperResolution CustomOps 2022-09-30 12:08:38 -07:00
Guenther Schmuelling 929283d4df
make spm build for static ort-web build (#293) 2022-09-16 12:42:15 -07:00
Wenbing Li 134f882e64
more C++ code fixing and polish for release (#275)
* more C++ code fixing and polish for release

* fixing for android build

* build flags for android release

* add missing exporting function
2022-08-04 10:13:17 -07:00
Wenbing Li a37f23e46b
upgrade pybind11 to fix the compliance issue. (#271) 2022-07-25 17:46:27 -07:00
Wenbing Li a7f1a728d0
the doc for android/java custom build. (#260)
* the doc for android/java custom build.

* Update custom_build.md

* Update custom_build.md

* Update custom_build.md
2022-07-08 10:26:00 -07:00
Wenbing Li 1a04abdf3e
Add two opencv operators as ONNX custom ops. (#249)
* Add two opencv operators as ONNX custom ops.

* update the git apply command line

* adjust the difference threshold

* do not break the build on binskim issue

* Make ImageReader be optional

* try to fix some potential build break

* undo the debug flag in setup.cfg
2022-06-15 23:22:10 -07:00
Wenbing Li 471a858b56
add a patch opencv compiling (#233) 2022-05-19 10:08:47 -07:00
Wenbing Li 909acb7ce4
build and packaging script improvement for release (#218)
* integrate opencv

* small fixing

* Add the opencv includes and libs

* refine a little bit

* standardize the output folder.

* fix ctest on Linux

* fix setup.py on output folder change.

* more fixings for CI pipeline

* more fixing 1

* more fixing 2

* more fixing 3

* ci pipeline fixing 1

* ci pipeline fixing 2

* a silly typo...

* ci pipeline fixing 3

* fixing the file copy issue.

* last fixing.

* re-test the fullpath in build_ext.

* One more try

* extent timeout

* mshost.yml indent

* Update mshost.yaml for Azure Pipelines

* cibuild build python versions

* Update wheels.yml

* only build python 3.8/3.9

* Update wheels.yml for Azure Pipelines

* seperate the ci pipeline
2022-05-11 16:51:59 -07:00
Wenbing Li 6eb41afcb2
fixing the security warning on blingfire. (#209) 2022-03-21 09:44:30 -07:00
Wenbing Li 0b2cfe7dd7
update the docs for imagenet pnp (#186) 2021-11-29 10:53:15 -08:00