-
Notifications
You must be signed in to change notification settings - Fork 475
Add new C# ONNX samples for working with Image and Audio #265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DETAILS The changes include updates to the documentation and code files related to the Phi labs using C#. The `csharplabs.md` and `readme.md` files were enhanced with clearer instructions and additional project descriptions. A new project for multi-modal image processing was added (`LabsPhi4-MultiModal-01Images.csproj`), which utilizes ONNX models for image analysis. The `Program.cs` file was modified to implement image processing and generate responses based on user prompts. Additionally, the project structure in the solution file (`LabsPhi.sln`) was updated to include the new multi-modal project, ensuring proper configuration for building and running within the solution.
DETAILS This commit introduces a new project called "LabsPhi4-MultiModal-02Audio" that utilizes a local Phi-4 model for audio file analysis and transcription generation. The project includes a new `.csproj` file with the necessary package references, a `Program.cs` file containing the main audio processing logic, and an audio file for testing purposes. Additionally, the solution file (`LabsPhi.sln`) has been updated to include this new project and its configurations, along with adjustments to existing project configurations. A copyright notice has also been added to the `Program.cs` file.
DETAILS
The changes involve the removal of a project named "LabsPhi4-Chat-03OnnxGenAIAPI" from the solution file "LabsPhi.sln". This includes the deletion of its project configuration settings and any associated build configurations. The project was identified by the GUID "{905C8124-5D16-4417-B171-CBDC991EF992}". Additionally, the project was removed from the nested projects section, and its configurations for both Debug and Release modes were also eliminated from the solution's global settings.
DETAILS - Updated `LabsPhi.sln` to include `Debug_Cuda` configuration. - Added multiple build configurations in `LabsPhi4-MultiModal-02Audio.csproj`. - Modified package references to conditionally include based on configuration. - Changed model initialization in `Program.cs` to use a `Config` object. - Ensured proper disposal of resources in `Program.cs`.
Contributor
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them.
|
Contributor
|
@elbruno you have branch conflicts |
leestott
approved these changes
Feb 28, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request includes several updates and additions to the
md/04.HOL/dotnetproject, including renaming a file, adding new sample projects, and updating existing code for better functionality. The most important changes are summarized below:File Renaming and Updates:
md/04.HOL/dotnet/csharplabs.mdtomd/04.HOL/dotnet/readme.mdand updated instructions for downloading models and cloning repositories. [1] [2] [3]New Sample Projects:
LabsPhi4-MultiModal-01Imagesproject for analyzing images using the Phi-4 model. [1] [2] [3]LabsPhi4-MultiModal-02Audioproject for analyzing audio files using the Phi-4 model. [1] [2] [3]Code Enhancements:
LabsPhi4-Chat-01OnnxRuntime/Program.csto initialize the model earlier and streamline the token generation process. [1] [2]Solution Configuration:
LabsPhi.slnto include new projects and their respective build configurations. [1] [2]Does this introduce a breaking change?
When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.
Does this require changes to learn.microsoft.com docs?
This repository is referenced by (https://azure.microsoft.com/products/phi-3)
which includes deployment, settings and usage instructions.
Type of change