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

11 Коммитов

Автор SHA1 Сообщение Дата
Wenbing Li be5aa773e3
Unify the image operations in extensions library (#831)
* Unify the image operations in extensions library

* fix the build configuration issue

* More build fixings

* Fix the native image codec

* fix encode_image

* Add bgr/rgb conversion for encoding image

* parity check

* build break

* update PNG encoding parameters

* build break on Linux

* using MSE to compare images

* fix the discrependency between Linux and Windows

* final code refinement

* one more change

* fix the C++ warnings

---------

Co-authored-by: Sayan Shaw <52221015+sayanshaw24@users.noreply.github.com>
2024-10-30 09:17:06 -07:00
Wenbing Li 1b80794903
Remove OpenCV dependency from C_API mode (#800)
* Remove OpenCV dependency from C_API model

* fix build on Windows

* switch ci build flag

* try to fix the macOS build issue

* more fixing

* fix the macOS build issue

* list jpeg source

* verified on MacOS

* update the pp_api too

* avoid the codecs library conflicts

* Add the unit tests

* move the codec test

* add the missing dl lib for extensions test

* refine the code

* a smaller fixing for Windows Python
2024-09-04 16:50:05 -07:00
Wenbing Li 8f2c35fad0
Add more tests for pre-processing C APIs (#793)
* initial api for tokenizer

* More fixings and test data refinement

* add a simple wrapper for pre-processing APIs

* fix the test issues

* test if the tokenizer is spm based

* fix the failed test cases

* json pointer does not work
2024-08-21 16:48:39 -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
cao lei 3649db065d
Introduce ONNXRUNTIME_PKG_DIR parameter to pip install (#719)
* introduce ONNXRUNTIME_PKG_DIR parameter to pip install

* update document
2024-05-17 05:58:37 -07:00
Wenbing Li 5d558bd34f
Refine the cuda build support (#680) 2024-03-27 10:08:07 -07:00
Wenbing Li ebc652d4af
Add python build option for cuda-archs (#672)
* Add python build option for cuda-archs

* ignore the nvidia-smi error

* apply multi-archs more places

* fix the semicolon issue

* Update ci_optional.yml

* Update ci.yml
2024-03-14 12:29:28 -07:00
Wenbing Li fc275e623f
fix the unit test flag issue on packaging pipelines (#652) 2024-02-14 16:46:04 -08:00
Wenbing Li 307e712f20
Enable unit test build flag by default (#648)
* the new tokenizer API

* set the api cmake option off

* fix the pipeline

* more pipelines fixing

* fix the ci pipeline of macOS Python

* added token supporting

* fix the simdjson issue on gcc

* undo tfmtok

* remove the simdjson
2024-02-13 10:56:21 -08:00
Wenbing Li dce0d9c72c
Add the missing tasks and fix the issues in CUDA python unit test pipelines (#615)
* add an experimental CUDA python unit test pipeline

* typo

* in ci.yml?

* winpycuda

* move it in optional

* enable cuda pytest in linuxbuild

* build in docker

* add the cuda pytest for windows

* cuda flag fixing

* minor fixing

* typo

---------

Co-authored-by: Yi Zhang <zhanyi@microsoft.com>
2023-12-08 10:19:54 -08:00
Wenbing Li fb2a8c2841
Enhancing CUDA Support in Python Package Build and Testing (#608)
* initial commit

* Add the cuda support for python package

* formt the code

* refine it a little bit
2023-11-27 15:39:52 -08:00