Welcome to the Florence2 ONNX Runtime Example repository! This project demonstrates how to use Florence2 with ONNX Runtime in a C++ environment.
This repository provides a basic example of integrating Florence2, a deep learning model, with ONNX Runtime in C++. The example showcases how to load and run inference using pre-trained Florence2 models.
Before you begin, ensure you have the following installed on your system:
- Bazel
- A C++ compiler (GCC, Clang, MSVC, etc.)
-
Clone the Repository
git clone https://github.com/d61h6k4/florence2.cpp.git cd florence2.cpp
-
Install Dependencies
Download the Florence2 models from the following link and place them in the appropriate directory within the project:
To run the example, use the following command:
bazel run //florence2:example
This command will build and execute the C++ example that loads the Florence2 model and performs inference using ONNX Runtime.
We welcome contributions to enhance this example! If you have any suggestions or improvements, please feel free to open an issue or submit a pull request.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
Thank you for using Florence2 with ONNX Runtime! If you have any questions or need further assistance, please feel free to open an issue in the repository.
Happy coding!