Skip to content
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

How to build and run some tests #3

Open
zydjohnHotmail opened this issue Aug 24, 2024 · 0 comments
Open

How to build and run some tests #3

zydjohnHotmail opened this issue Aug 24, 2024 · 0 comments

Comments

@zydjohnHotmail
Copy link

Hi,
I want to test your repo, so I did the git clone and open it with Visual Studio 2022.
Here is the .csproj file:

net8.0 AnyCPU latest Curiosity GmbH, Othneil Drew (c) Copyright 2024 Curiosity GmbH - all right reserved, Copyright (c) 2021 Othneil Drew (Bert Tokenizers) MIT www.curiosity.ai https://github.com/curiosity-ai/florence2-sharp false false Florence2 Implementing the Florence-2-base model for image understanding. Supports captioning, OCR, and object detection with optional phrase grounding. Uses ONNX models from huggingface.co/onnx-community/Florence-2-base. Enables various output tasks including detailed captioning, region-based OCR, and flexible object detection. image-processing computer-vision machine-learning ai florence-2-model onnx image-captioning ocr object-detection image-understanding deep-learning neural-network

=> But when I want to build the solution, I got the following errors:
Error (active) CS0246 The type or namespace name 'FinalResult' could not be found (are you missing a using directive or an assembly reference?)
Error (active) CS1061 'FlorenceModelDownloader' does not contain a definition for 'InitializeModelRepositoryAsync' and no accessible extension method 'InitializeModelRepositoryAsync' accepting a first argument of type 'FlorenceModelDownloader' could be found (are you missing a using directive or an assembly reference?)
Error (active) CS1503 Argument 4: cannot convert from 'Florence2.FlorenceResults[]' to 'FinalResult[]'
Error (active) CS1503 Argument 4: cannot convert from 'Florence2.FlorenceResults[]' to 'FinalResult[]'
=> Please let me know how to fix those issues?
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant