File tree 2 files changed +9
-13
lines changed
samples/cpp/visual_language_chat
2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -701,26 +701,22 @@ jobs:
701
701
run : >
702
702
curl ${{ env.m_ov_link }} | tar --directory ./ov/ --strip-components 1 -xz
703
703
&& brew install coreutils scons
704
- - run : >
705
- OpenVINO_DIR=./ov/runtime/cmake/
706
- TBB_DIR=./ov/runtime/3rdparty/tbb/lib/cmake
707
- cmake -DCMAKE_BUILD_TYPE=Release -B ./build/ ./
704
+ - run : OpenVINO_DIR=./ov/runtime/cmake/ cmake -DCMAKE_BUILD_TYPE=Release -B ./build/ ./
708
705
- run : >
709
706
LD_LIBRARY_PATH=${{ github.workspace }}/ov/runtime/3rdparty/tbb/lib/:$LD_LIBRARY_PATH
710
707
cmake --build ./build/ --config Release --target visual_language_chat -j
711
- - run : >
712
- LD_LIBRARY_PATH=${{ github.workspace }}/ov/runtime/3rdparty/tbb/lib/:$LD_LIBRARY_PATH
713
- DYLD_LIBRARY_PATH=${{ github.workspace }}/ov/runtime/3rdparty/tbb/lib/:$DYLD_LIBRARY_PATH
714
- ./build/samples/cpp/visual_language_chat/visual_language_chat ./miniCPM-V-2_6/ d5fbbd1a-d484-415c-88cb-9986625b7b11
715
- <<< $'What is on the image?\nWhat is special on the image?'
716
- timeout-minutes: 2
717
708
- run : >
718
709
source ./ov/setupvars.sh
719
710
&& python -m pip install --upgrade-strategy eager ./thirdparty/openvino_tokenizers/[transformers] -r ./samples/requirements.txt --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
720
711
- run : >
721
712
source ./ov/setupvars.sh
722
713
&& python ./samples/cpp/visual_language_chat/export_MiniCPM-V-2_6.py ./miniCPM-V-2_6/
723
714
- run : wget https://github.com/openvinotoolkit/openvino_notebooks/assets/29454499/d5fbbd1a-d484-415c-88cb-9986625b7b11
715
+ - run : >
716
+ source ./ov/setupvars.sh
717
+ && ./build/samples/cpp/visual_language_chat/visual_language_chat ./miniCPM-V-2_6/ d5fbbd1a-d484-415c-88cb-9986625b7b11
718
+ <<< $'What is on the image?\nWhat is special on the image?'
719
+ timeout-minutes: 2
724
720
725
721
cpp-continuous-batching-ubuntu :
726
722
runs-on : ubuntu-20.04-8-cores
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ ov::Tensor utils::load_image(const std::filesystem::path& image_path) {
13
13
image_path.string ().c_str (),
14
14
&x, &y, &channels_in_file, desired_channels);
15
15
if (!image) {
16
- throw std::runtime_error{" Failed to load the image" };
16
+ throw std::runtime_error{" Failed to load the image. " };
17
17
}
18
18
struct SharedImageAllocator {
19
19
unsigned char * image;
@@ -22,11 +22,11 @@ ov::Tensor utils::load_image(const std::filesystem::path& image_path) {
22
22
if (channels * height * width == bytes) {
23
23
return image;
24
24
}
25
- throw std::runtime_error{" Unexpected number of bytes was requested to allocate" };
25
+ throw std::runtime_error{" Unexpected number of bytes was requested to allocate. " };
26
26
}
27
27
void deallocate (void *, size_t bytes, size_t ) {
28
28
if (channels * height * width != bytes) {
29
- throw std::runtime_error{" Unexpected number of bytes was requested to deallocate" };
29
+ throw std::runtime_error{" Unexpected number of bytes was requested to deallocate. " };
30
30
}
31
31
std::free (image);
32
32
image = nullptr ;
You can’t perform that action at this time.
0 commit comments