In the email I am getting message as “This is example notification. Predicted classes: {{ $parameters.predicted_classes }}” but not the actual values.
Can someone help in this
In the email I am getting message as “This is example notification. Predicted classes: {{ $parameters.predicted_classes }}” but not the actual values.
Can someone help in this
Hi Namish,
In order to use these dynamic values in the email message, they have to be defined as a Property on the Email Notification block.
Just click on “Add Property” right below the message area. Then name your property with the same value you’re using on the message, in this case “predicted_classes”. And then select the source of the property and any operations necessary, e.g. class names extracted from a model prediction.
If those property names match, the values should be replaced automatically as the message is sent.
Thanks this helped
Can you also suggest how can I get image from workflow to email.
I am able to get below details to “email” message using model.predictions.
Can you tell me how I can get specific details e.g. “bear” from following to email.
Detections(xyxy=array([[410., 279., 840., 499.]]), mask=None, confidence=array([0.9587068]), class_id=array([0]), tracker_id=None, data={‘class_name’: array([‘bear’], dtype=‘<U4’), ‘image_dimensions’: array([[ 657, 1024]]), ‘detection_id’: array([‘665ea965-a7ca-4e72-adc0-c06b8113e556’], dtype=‘<U36’), ‘parent_id’: array([‘image’], dtype=‘<U5’), ‘height’: array([220]), ‘width’: array([430])}, metadata={})
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.