Open KIRA009 opened 3 months ago
@abrichr I have added the segmentation logging for visual replay strategy
Excellent! Can you please share screenshots? 🙏
Thank you @KIRA009. Those images don't look right. If you set DEBUG = True
at the top of visual.py
and run the strategy again, you will see the images that are generated at each step. These are the images I would expect to see in the dashboard. Please let me know if I can help clarify further!
@abrichr I see images like these, the replay stops arbitrarily for me though, with the exception
2024-07-25 01:52:21.720 | WARNING | openadapt.strategies.visual:get_next_action_event:253 - exc=ValueError("'Settings gear icon' is not in list")
I am not sure if its because my recording is not great, or my prompt is not good, but this should log any segmentation returned by get_window_segmentation
in visual.py
exc=ValueError("'Settings gear icon' is not in list")
This is tracked here: https://github.com/OpenAdaptAI/OpenAdapt/issues/658
this should log any segmentation returned by get_window_segmentation in visual.py
Those images you pasted are indeed the image I was referring to in my previous comment. However, I don't see them in the video you shared.
@abrichr here's the video after merging the fix
https://github.com/user-attachments/assets/ca423ae1-7a98-4bcd-8b2e-b2c81b894c35
@KIRA009 it looks like the screenshot is blank. Any idea why that is? Which application was open when the screenshot was taken?
@abrichr it was vs code I believe. You could try this branch on a recording you have and check the results
What kind of change does this PR introduce? This PR addresses #757
Summary It adds logging to database during replay that will then be displayed on the dashboard. The database bloats very quickly because the logs include images, and python objects
Checklist
How can your code be run and tested?
Other information