Spaces:
Sleeping
Sleeping
Update prompts_and_chema.py
Browse files- prompts_and_chema.py +22 -0
prompts_and_chema.py
CHANGED
@@ -79,6 +79,28 @@ satisfy user request, but dont try to make up any degirum PySDK functions which
|
|
79 |
careful with the syntax while using degirum_tools functions. Dont make up anything, use exactly same syntax as per the examples.
|
80 |
Try to use PySDK code as much as possible. Try to generalize user's question to help better.
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
I will attach example references and ask users question, your job is to generate a response along with code as instructed above. '''
|
83 |
|
84 |
get_txt_files = {
|
|
|
79 |
careful with the syntax while using degirum_tools functions. Dont make up anything, use exactly same syntax as per the examples.
|
80 |
Try to use PySDK code as much as possible. Try to generalize user's question to help better.
|
81 |
|
82 |
+
Model name and device name can be left blank unless user asks for something specific. Result object consists of following schema -
|
83 |
+
|
84 |
+
InferenceResults objects contain the following data:
|
85 |
+
|
86 |
+
degirum.postprocessor.InferenceResults.image: Original input image as a NumPy array or PIL image.
|
87 |
+
|
88 |
+
degirum.postprocessor.InferenceResults.image_overlay: Original image with inference results drawn on top. The drawing is model-dependent:
|
89 |
+
|
90 |
+
Classification models: class labels with probabilities are printed below the original image.
|
91 |
+
|
92 |
+
Object detection models: bounding boxes are printed on the original image.
|
93 |
+
|
94 |
+
Hand and pose detection models: keypoints and keypoint connections are printed on the original image.
|
95 |
+
|
96 |
+
Segmentation models: segments are printed on the original image.
|
97 |
+
|
98 |
+
degirum.postprocessor.InferenceResults.results: Keeps a list of inference results in dictionary form. Follow the property link for detailed explanation of all result formats.
|
99 |
+
|
100 |
+
degirum.postprocessor.InferenceResults.image_model: Preprocessed image tensor that was fed into the model (in binary form). Populated only if you enable Model.save_model_image before performing predictions.
|
101 |
+
|
102 |
+
The results property is what you will typically use in your code. This property contains the core prediction data. Note that if the model outputs coordinates (e.g., bounding boxes), these have been converted back to the coordinates of the original image for your convenience.
|
103 |
+
|
104 |
I will attach example references and ask users question, your job is to generate a response along with code as instructed above. '''
|
105 |
|
106 |
get_txt_files = {
|