Skip to content

Commit

Permalink
more corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingl committed Dec 12, 2024
1 parent 28430ec commit 8f7004b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,11 @@ if(OCOS_ENABLE_VISION)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR CMAKE_SYSTEM_NAME STREQUAL "iOS")
# Use ImageIO on Apple platforms
set(_DEFAULT_CODEC_ENABLE OFF)
target_link_libraries(ocos_operators PRIVATE "-framework CoreFoundation" "-framework CoreGraphics" "-framework ImageIO" "-framework CoreServices" "-framework MobileCoreServices")
set(_APPLE_FRAMEWORKS "-framework CoreFoundation" "-framework CoreGraphics" "-framework ImageIO" "-framework CoreServices")
if(CMAKE_SYSTEM_NAME STREQUAL "iOS")
list(APPEND _APPLE_FRAMEWORKS "-framework MobileCoreServices")
endif()
target_link_libraries(ocos_operators PRIVATE ${_APPLE_FRAMEWORKS})
endif()
endif()

Expand Down
2 changes: 1 addition & 1 deletion test/test_tools_add_pre_post_processing_to_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ def test_FastestDet(self):
output_model = os.path.join(test_data_dir, "FastestDet.updated.onnx")
input_image_path = os.path.join(test_data_dir, "wolves.jpg")

add_ppp.yolo_detection(Path(input_model), Path(output_model), output_format = 'png', input_shape=(352, 352))
add_ppp.yolo_detection(Path(input_model), Path(output_model), output_format='png', input_shape=(352, 352))

so = ort.SessionOptions()
so.register_custom_ops_library(get_library_path())
Expand Down

0 comments on commit 8f7004b

Please sign in to comment.