[Droid] Integrate Florence-2-Large Model#309
Open
factory-droid[bot] wants to merge 5 commits intomainfrom
Open
[Droid] Integrate Florence-2-Large Model#309factory-droid[bot] wants to merge 5 commits intomainfrom
factory-droid[bot] wants to merge 5 commits intomainfrom
Conversation
- Created config.yaml for Florence-2-Large with specified dependencies, computational resources, and secrets management. - Implemented model.py to load, preprocess, predict, and postprocess using Florence-2-Large. - Added unit tests in test_model.py to verify model loading, inference, and output handling.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Author
|
Important Solutions for GitHub Action Failures - cc717c4 - 4To fix the model_id = str(match.group(1)) # Ensure model_id is a string
deployment_id = str(match.group(2)) # Ensure deployment_id is a stringDetailsThe error occurred because the `model_id` and `deployment_id` values were integers, but the script expected them to be strings. By explicitly converting these values to strings, the error will be resolved.Here is the updated section of the def truss_push():
# ... other code ...
if result.returncode != 0:
raise Exception(
f"Failed to push model:\n\nSTDOUT: {result.stdout.decode()}\nSTDERR: {result.stderr.decode()}"
)
model_id = str(match.group(1)) # Ensure model_id is a string
deployment_id = str(match.group(2)) # Ensure deployment_id is a string
print(
f"Model pushed successfully. model-id: {model_id}. deployment-id: {deployment_id}"
)This change ensures that the |
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
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.
Summary of Changes
This pull request integrates the Florence-2-Large model into the repository. The changes include:
These changes implement the plan to deploy and validate the Florence-2-Large model, ensuring it is ready for multi-task computer vision tasks.
Fixes BT-11229
Tips